Fixed Left Nav Submenu

Having issue centering & styling the submenu in navigation. When I inspect the UL its adding left: 94%; by default which is making the sub nav offset to the right. My goal is to have the submenu appear centered below menu item.

This is the code I’m using as well as an example of what I’m trying to accomplish.

.desktop .sub-menu {
position: relative;
float: center;
max-width: 160px;

}
.desktop .sub-menu a{
white-space: initial;
}

.x-navbar.x-navbar-fixed-right li.current-menu-parent > ul {
display: block !important;
}

Hello @mangia,

Thanks for asking. :slight_smile:

You can try adding following CSS under X > Launch > Options > CSS to display sub menu items under parent menu:

.masthead-inline .x-navbar.x-navbar-fixed-left .desktop .sub-menu {left: 0;}

Thanks.

1 Like

Perfect, thank you.

Hi @mangia,

Happy to hear that.

Feel free to ask us again.

Thanks. :slight_smile:

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