- 
		AuthorPosts
 - 
		
			
				
May 11, 2023 at 12:45 pm #1407110
Hello!
Like you see on the screenshot link, my heater menu are not centered. I tried to find an option but was not able to find the right setting/ custom css.
Can you please help?
https://configurasverige-my.sharepoint.com/:i:/g/personal/andreas_lippmann_configura_com/EaqoWKfNPrhPrEm3p0Tuo40BAM7fAJiUfIxTLLQvKfFGoQ?e=61iaFpMay 12, 2023 at 4:46 am #1407170Hey alliansohog,
Thank you for the inquiry.
You can add this css code to align the menu container at the center of the header.
.av-main-nav-wrap ul { display: flex; justify-content: center; }Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css.
Best regards,
IsmaelMay 15, 2023 at 10:16 pm #1407489Hello!
The css code above did not the trick, instead i get a flat submenu (please see link to screenshot) https://configurasverige-my.sharepoint.com/:i:/g/personal/andreas_lippmann_configura_com/EalC1ogqnUZLpTELrkMPSsIBSKLaMVnr6-oTmGKud1iJJA?e=Q8JyLUMay 16, 2023 at 1:54 am #1407502Hi alliansohog,
Can you try adding this CSS code:
.html_header_top #top .av_logo_right .logo { display: none; } .html_header_top #top #header_main .inner-container { text-align: center; } .html_header_top #top #header_main .main_menu { position: static; display: inline-block; }Hope it helps.
Best regards,
NikkoMay 16, 2023 at 10:39 am #1407532Thanks! Your css-code worked.
Could you please also help me to make an exemption when it switch to burger menu?
I tried to: @media only screen and (min-width: 800px) {…}
but it didn’t worked.
This code add also an extra space to the header:
https://configurasverige-my.sharepoint.com/:i:/g/personal/andreas_lippmann_configura_com/EeuvraCKXEtOouuQf4GlvU8BXjO7oataxFGKTO1KsLR7Vw?e=oeeKaoMay 16, 2023 at 11:02 am #1407539Strange.. Now it works also on mobile view without a change from my side.. All good now.
May 16, 2023 at 11:24 am #1407552Hi alliansohog,
I’m glad to hear that all is good now. :)
Thanks for using Enfold and have a great day!Best regards,
Nikko - 
		AuthorPosts
 
- The topic ‘Help to center the main menu’ is closed to new replies.
 
