Site logo

Archived topic

centering main navigation

11 replies · Started by takkularapsis on January 25, 2021

Viewing posts 1–12 of 12

Hi,

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

Hi there,

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

Hi,

Thank you, it is now in flexbox.

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;
  }
}

Hi,

Amazing, thank you again for great support!

Glad to be of help.

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.

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

Yes, off course, here:

So much thank you again!

You're welcome

This archived topic is closed to new replies.