This topic has 6 replies, 2 voices, and was last updated 6 years, 11 months ago ago by Rose Tyler
Hello,
another question about the main menu.
Right now it is a all wide menu but the elements in it are aligned left.
How can I have it all aligned center?
Thank you very much!
Hello,
You may use this custom css code:
.fixed-header .menu > li.menu-full-width .nav-sublist-dropdown .container > ul, .main-nav .menu > li.menu-full-width .nav-sublist-dropdown .container > ul {
display:-webkit-box !important;
display:-ms-flexbox !important;
display:flex !important;
-webkit-box-pack:center !important;
-ms-flex-pack:center !important;
justify-content:center !important;
}
or this one:
.fixed-header .menu > li.menu-full-width .nav-sublist-dropdown .container > ul, .main-nav .menu > li.menu-full-width .nav-sublist-dropdown .container > ul {
display:-webkit-box !important;
display:-ms-flexbox !important;
display:flex !important;
-webkit-box-pack:space-evenly !important;
-ms-flex-pack:space-evenly !important;
justify-content:space-evenly !important;
}
Regards
Thank you very much for your help!
As I am not used to work with css, can you please tell me precisely where to add this code in editor?
Thank you very much!
Hello,
You’re welcome!
You may add the code in custom.css file of parent theme or in style.css file of child theme.
How to create custom.css you can watch in this tutorial https://www.youtube.com/watch?v=Qok2zRedRMY.
Let us know if you need any further assistance.
Regards
Thank You very much it works pertly now!
You’re welcome!
This topic will be closed because the issue is solved. Please kindly open up new tickets for additional questions.
Regards
The issue related to '‘Main Menu – Align center’' has been successfully resolved, and the topic is now closed for further responses