• 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

Nav align and spacing issues – PROSE

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 › Nav align and spacing issues – PROSE

This topic is: resolved

Tagged: css, line height, margins, nav align, Prose

  • This topic has 10 replies, 3 voices, and was last updated 12 years, 9 months ago by NathanBWeller.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • July 6, 2013 at 10:42 am #49530
    NathanBWeller
    Member

    I'm attempting to center my top nav menu. I'm also hoping to be able to adjust the margins dictating how much space there is between the primary nav, the title and the sub nav so that it is all spaced neatly. However, I have not been able to get the css right for any of that.

    Here is what I've tried in terms of centering the top nav:

    /* Primary Navigation
    ------------------------------------------------------------*/

    #nav .wrap {
    text-align: center;
    }

    And here is what I've done to try an add margin space above my sub nav:

    /*Secondary Navigation
    ------------------------------------------------------------*/

    #subnav {
    top-margin: 20px;
    border-top: 1px solid #CBCBC9;
    border-bottom: 1px solid #CBCBC9;
    }

    Any help would be appreciated.

    Thanks,

    Nathan

    http://nathanbweller.com/
    July 6, 2013 at 11:12 am #49538
    el_steele
    Member

    Hey Nathan,

    You'll want to change how the ul elements are displayed:

    #nav ul {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    }

    You don't need the float: left or width: 100% since those will be applied to the #nav .wrap.

    As for the secondary nav, flip-flop your margin property so that it's margin-top instead of top-margin. Easy mistake. When in doubt, always remember general > specific when working with css property names. You'll also want to move that property to #subnav, since that is the element that has the top border.

    Hope that helps! If you don't already work with an in-browser inspector, it's a huge help for frustrating stuff like this. I use chrome's. If you need any help with that, let me know.

    ---

    follow me @el_steele


    @el_steele | elsteele.com

    July 6, 2013 at 11:19 am #49541
    NathanBWeller
    Member

    Once I had a chance to see the nav in the center I opted to get rid of it altogether. But thanks for the help! The margin tips worked perfectly 🙂

    July 6, 2013 at 11:20 am #49542
    el_steele
    Member

    Haha. No problem. I do that all the time too.


    @el_steele | elsteele.com

    August 13, 2013 at 1:55 pm #56142
    NathanBWeller
    Member

    Hey so I'm back. I'm now attempting to center the elements in my secondary nav menu and once again, not having any luck. I tried using the css you wrote above but it doesn't seem to be working.

    September 17, 2013 at 4:09 pm #63055
    BeltofTruthSteve
    Member

    NathanBWeller - I just checked out your site and it looks like you figured out how to center the secondary navigation. Can you share how you figured that out? Thanks!

    September 17, 2013 at 4:41 pm #63066
    NathanBWeller
    Member

    Hey BeltofTruthSteve - Yeah, I found another thread where the following code was used. As you mentioned above, it worked for me! Hope it helps you too 🙂

    #subnav .wrap {
    display: table;
    margin: 0 auto;
    width: auto;
    }

    September 17, 2013 at 5:00 pm #63070
    BeltofTruthSteve
    Member

    Thanks! Now I just need to figure out how to adjust the spacing and I'll be set.

    September 17, 2013 at 5:07 pm #63073
    NathanBWeller
    Member

    If you figure that out, please post here too 🙂

    September 18, 2013 at 12:19 pm #63247
    BeltofTruthSteve
    Member

    Okay, so I had a friend help me figure this out. The following snippets add a vertical divider between buttons, center the buttons, and space them out evenly.

    #subnav .wrap {
    display: table;
    margin: 0 auto;
    width: auto;
    }

    #subnav li {
    border-left:1px dotted #31150c;
    }
    #subnav li:first-child {
    border-left:none;
    }

    #subnav li a {
    padding:7px 29px 6px;
    }

    September 18, 2013 at 12:31 pm #63253
    NathanBWeller
    Member

    Thanks!

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 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