• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Centering images in separate widgets for Executive Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Centering images in separate widgets for Executive Pro

This topic is: resolved

Tagged: css, ExecutivePro, widget

  • This topic has 4 replies, 3 voices, and was last updated 8 years, 6 months ago by j7an.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 12, 2017 at 12:50 pm #209028
    j7an
    Member

    I currently have three separate widgets in my Executive Pro theme. But the items (BBB, Yelp, and Facebook) don't center as expected even when I use margin: auto and display: block.

    I can only assume that each individual widget container is independent of the other containers which is probably why margin: auto and display: block doesn't seem to affect the positioning of the BBB logo.

    Whats the best way to center the elements of the BBB, Yelp, and Facebook page elements?

    https://dev.mysuperservice.com
    July 12, 2017 at 1:08 pm #209030
    Victor Font
    Moderator

    You're images are centered horizontally. Are you talking about vertical alignment?


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 12, 2017 at 1:20 pm #209032
    j7an
    Member

    Yes, I would like to center vertically as well. margin: auto should center on all sides of the element, but its not working.

    July 12, 2017 at 6:40 pm #209042
    PyramidWeb
    Member

    Hi j7an,
    In your "style.css", change

    .home-middle .widget, .home-top .widget {
        float: left;
        padding: 0 2.8%;
        width: 33.3333%;
    }
    

    to

    .home-middle .widget {
        float: left;
        padding: 0 2.8%;
        width: 33.3333%;
    }
    
    .home-top .widget {
        display: inline-block;
        padding: 0 2.8%;
        vertical-align: middle;
        width: 30%;
    }
    

    Note that you need to reduce the width of the widgets.

    Hope this helps.

    July 13, 2017 at 9:36 am #209064
    j7an
    Member

    Thanks

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble