Help with Mega menu styling in Pro theme

Need assistance on centering mega sub menus under the associated navbar links so they pop up at correct location at different desktop sizes. Also trying to apply styles to JUST the parent heading at the top of each column in the mega sub menus, not the child links.

Hi @ccarter3,

Thank you for writing in,

I see you added this custom CSS to resize the mega menu.

.x-navbar-fixed-top-active .desktop .x-nav .x-megamenu.custom-width-1>.sub-menu {
    max-width: 60%;
    margin-left: 25%;
}

Please update that to this so it will always center.

.x-navbar-fixed-top-active .desktop .x-nav .x-megamenu.custom-width-1>.sub-menu {
 max-width: 60%;
 margin-left: auto;
 margin-right: auto;
}

Use the following selector to style the submenu heading.

.desktop .x-nav .x-megamenu>.sub-menu>li>a {
/*	YOUR CSS PROPERTIES HERE*/
}

You can find the proper CSS code selector using the Chrome browser Developer Toolbar
For the CSS code itself, I suggest that you get started with this tutorial

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.