[Resolved] centering main navigation

Home Forums Support [Resolved] centering main navigation

Home Forums Support centering main navigation

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1632349
    takkularapsis

    Hi,

    I would like to center navigation but leave polylang flags to right.

    #1632491
    David
    Staff
    Customer Support

    Hi there,

    can you change the Customizer > General –> Structure to Flexbox. Then i can take a look at the CSS required for that layout.

    #1632543
    takkularapsis

    Hi,

    Thank you, it is now in flexbox.

    #1632630
    David
    Staff
    Customer Support

    Try adding this CSS:

    @media(min-width: 769px) {
      #site-navigation,
      #primary-menu,
      #primary-menu ul {
        flex: 1;
      }
    
      .main-nav {
        display: flex
      }
    
      .main-navigation li:first-child,
      .main-navigation li.lang-item-first {
        margin-left: auto;
      }
    }
    
    #1633826
    takkularapsis

    Hi,

    Amazing, thank you again for great support!

    #1634041
    David
    Staff
    Customer Support

    Glad to be of help.

    #1639127
    takkularapsis

    Hi,

    May i still quickly bother with this?

    How can i setup same css to swedish page? There the navigation goes back to right.
    I tryid putting country code after css, but didnt work.

    #1639314
    David
    Staff
    Customer Support

    Can you share a link to a page where i can see the issue ?

    #1639328
    takkularapsis

    Yes, off course, here:

    #1639618
    David
    Staff
    Customer Support
    #1640200
    takkularapsis

    So much thank you again!

    #1640318
    David
    Staff
    Customer Support

    You’re welcome

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