Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1374937

    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?

    #1374946

    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

    #1374951

    That worked perfectly. Thank you!

    #1374957

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exclude Mega Menu from CSS Affecting Submenus’ is closed to new replies.