Archived topic
centering main navigation
11 replies · Started by takkularapsis on January 25, 2021
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:
I updated the CSS here:
https://generatepress.com/forums/topic/centering-main-navigation/#post-1632630
So much thank you again!
You're welcome