Home › Forums › Support › Mega Menu Problem This topic has 9 replies, 3 voices, and was last updated 1 year, 11 months ago by Ying. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts September 23, 2022 at 11:33 am #2351919 tolis Hello, Look at my mega menu behavior whats happening? September 23, 2022 at 12:25 pm #2351959 YingStaff Customer Support Hi there, Can you try adding this CSS? nav .main-nav .mega-menu > ul { display: none; } nav .main-nav .mega-menu:hover > ul { display: flex; } September 24, 2022 at 1:06 am #2352239 tolis yeah it worked thanks, one more question how to center completly my primary menu because i see its not centered correctly September 24, 2022 at 11:52 am #2352696 YingStaff Customer Support Do you mean to center the main navigation on the desktop? https://www.screencast.com/t/kuQimoegI5zH Or the header which is already centered? https://www.screencast.com/t/LIfCSSfh107R September 24, 2022 at 11:38 pm #2352919 tolis i mean this https://prnt.sc/OVh2AI2RwmxW September 25, 2022 at 7:07 pm #2353590 Fernando Customer Support Hi Tolis, Try adding this CSS: @media (min-width: 1025px) { div#primary-menu { position: absolute; left: 50%; transform: translateX(-50%); } div#primary-menu ul#menu-main { justify-content:center; } .menu-bar-items:before { width: 0 !important; } .menu-bar-items { margin-left: auto; } } This will only work though for Desktop screens. If you try doing this for smaller screens, the menu items would overlap. September 26, 2022 at 11:29 am #2354408 tolis hello, it worked but it affected my mega menu have a look September 26, 2022 at 2:14 pm #2354569 YingStaff Customer Support Try change this: div#primary-menu { position: absolute; left: 50%; transform: translateX(-50%); } to: div#primary-menu { position: absolute; left: 50%; width: 100%; transform: translateX(-50%); } And change this: div#primary-menu ul#menu-main { justify-content:center; } to: div#primary-menu ul#menu-main { justify-content:center; max-width: calc(100% - 700px); margin-left: auto; margin-right: auto; } September 27, 2022 at 9:44 am #2355574 tolis thanks it worked ๐ September 28, 2022 at 4:34 pm #2356977 YingStaff Customer Support You are welcome ๐ Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In