12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Dec 5, 2020

How to align the last menu item’s submenu to the right in Oxygen

Sridhar Katakam

Is your Oxygen‘s nav menu’s last item’s submenu causing a white gap to the right of your webpages?

Before:

Simply add this CSS to fix:

.oxy-nav-menu .oxy-nav-menu-list > .menu-item:last-child > .sub-menu {
  right: 0;
}

After:

By default, the submenus will be absolutely positioned and will appear when hovered aligned left i.e., with their left edges aligned with the left edges of their parent menu item. With the above code, we are setting aligning the right edge for the submenu of the last menu item in the navigation.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right