My Enfold site uses both submenus and a mega menu. I want all drop-down menus to have a solid red 6px border across the bottom. I can achieve that on the submenus with the following:
.sub-menu li:last-child {
border-bottom: 6px solid #cc0000 !important;
}
And on the mega menu with the following:
.avia_mega_div {
border-bottom: 6px solid #cc0000 !important;
}
The problem is that the submenu CSS results in an additional unwanted border at the bottom of each column of the mega menu.
See the screenshots here and here for additional context. They show the submenu looking correct with a border at the bottom, and then the mega menu with the correct border across the bottom and the unwanted borders at the bottom of each column.
How do I exclude the mega menu from inheriting the CSS attribute for the regular submenus?
Hey scknoll,
Thanks for the link to your site, try changing your first css to this:
.menu-item-top-level:not(.menu-item-mega-parent) .sub-menu li:last-child {
border-bottom: 6px solid #cc0000 !important;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
That worked perfectly. Thank you!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike