Archived topic
How to center both menu and logo in the middle (header) ?
3 replies · Started by Alberto on December 2, 2021
Hi there,
I would like to get a fully centered menu with the logo in the middle. I followed your guide --> https://docs.generatepress.com/article/centering-logo-navigation/ but I would like to show the 4 links closer to the logo, not to the opposite endpoints.
How can I achieve that? Please note that I am using Flexbox and I have not enabled the "navigation as a header" option. I copied & pasted your CSS code found on the guide (nth-child:3 is correct) and that my header presets are set to "current".
Thank you very much for your help,
Alberto
Hi Alberto,
You can try add this CSS, feel free to adjust the value:
.inside-header.grid-container {
max-width: 900px;
}
Let me know if this helps :)
Hi Ying,
thank you so much for your hint, it works greatly!
Have a nice day/night :)
Alberto
Glad to hear that!
You are welcome :)