[Resolved] Header & Navigation Alignment / Breakpoints

Home Forums Support [Resolved] Header & Navigation Alignment / Breakpoints

Home Forums Support Header & Navigation Alignment / Breakpoints

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #347029
    Stuart

    I have my Navigation inside the header, set to Float Right.

    Here’s the website: http://powerhousewebcreations.com/connectfs/

    When the screen width narrows down to approx 1000px, the navigation is forced below the logo but still remains floated to the right, with the logo floated to the left.

    At this breakpoint I want the logo and navigation to be center aligned.

    I also want to be able to apply some css styling at this breakpoint – padding/margins etc.

    Can anyone help me out here?

    Stuart

    Hop

    #347155
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this a shot:

    @media (max-width:1000px) {
        .site-logo {
            display: block;
            text-align: center;
        }
        #site-navigation {
            float: none;
            margin-top: 20px;
        }
        .inside-header {
            padding-bottom: 10px
        }
    }
    #347213
    Stuart

    Hi Tom

    Thanks for the quick reply. Tried that and now the Navigation is off to the left, not center. See the image below

    connect

    Any ideas? I don’t mind losing the search button if that makes it any easier.

    #347398
    Tom
    Lead Developer
    Lead Developer

    What happens when you set your navigation alignment to center in Customize > Layout > Primary Navigation?

    #347517
    Stuart

    Tried that and it didn’t change anything, still left aligned.

    #347713
    Tom
    Lead Developer
    Lead Developer

    I’m still seeing it as aligned left in the code. Can you save it as aligned center and then let me know so I can see why it’s not working?

    Thanks!

    #347795
    Stuart

    That’s the Navigation Alignment now set to Center, and saved.

    Thanks

    #347944
    Tom
    Lead Developer
    Lead Developer

    Hmm strange.

    Alright, add this CSS to your media query instead:

    .main-navigation {
        text-align: center;
    }
    
    .main-navigation li {
        float: none !important;
        display: inline-block;
    }
    #348082
    Stuart

    Yep, that done the trick!

    Thanks for the assistance Tom, and for your ongoing efforts with this theme.

    Moved from Headway to GeneratePress + BB and so far i’m very impressed.

    #348248
    Tom
    Lead Developer
    Lead Developer

    Awesome, glad I could help! 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.