• 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

Centric Pro – Centering featured section

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 › General Discussion › Centric Pro – Centering featured section

This topic is: not resolved

Tagged: css, divs, troubleshoot

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 3 months ago by Pixel Frau.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 11, 2015 at 7:26 pm #147542
    supernaan
    Member

    How can I make it so that 5 elements (not just 3, as shown here) will be centered?
    I've been wracking my brain on this one. Gold stars if anyone can help!

    They all rag left by default.

    View post on imgur.com

    http://i.imgur.com/vseW89X.png
    April 13, 2015 at 2:47 am #147683
    Pixel Frau
    Member

    You'll need to change the CSS. You should find this in the home page section of your stylesheet.

    .home-widgets .featuredpost .entry {
        float: left;
        margin-left: 2.564102564102564%;
        width: 31.623931623931625%;
    }
    
    .home-widgets .featuredpost .entry:nth-last-child(-n+3) {
        margin-bottom: 0;
    }
    
    .home-widgets .featuredpost .entry:nth-of-type(3n+1) {
        clear: both;
        margin-left: 0;
    }

    Assuming you only want to change it for that particular widget area, you could add something like this to your CSS:

    .home-widgets .home-widgets-3 .featuredpost .entry {
        float: left;
        margin-left: 2.564102564102564%;
        width: 17.9487179487179488%%;
    }
    
    .home-widgets .home-widgets-3 .featuredpost .entry:nth-last-child(-n+5) {
        margin-bottom: 0;
    }
    
    .home-widgets .home-widgets-3 .featuredpost .entry:nth-of-type(5n+1) {
        clear: both;
        margin-left: 0;
    }
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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