Site logo

[Support request] Top Menu Underline

Home Forums Support [Support request] Top Menu Underline

Home Forums Support Top Menu Underline

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2536073
    John

    I have put underline css code to TOP Menu, but I can’t change the sub menu underline padding without The main menu item, Also How to make the underline appearing in the current page?

    .main-navigation li > a::after {
      bottom: 10px;
      content: "";
      display: block;
      height: 4px;
      left: 0;
      position: absolute;
      background: #f46100;
      transition: width 0.3s ease 0s, left 0.1s ease 0s;
      width: 0;
    }
    .main-navigation li > a:hover::after, .main-navigation li > a.active-nav::after {
        width: calc(100% - 40px);
        left: 50%;
        transform: translatex(-50%);
        bottom: 10px;
    }
    #2536179
    Ying
    Staff
    Customer Support

    Hi John,

    For qeustion 2, try adding this CSS specifically for the sub-menu items:

    .main-navigation .sub-menu li > a:hover::after {
        bottom: 0;
    }

    For question 2, add this CSS selector to the hover effect CSS:
    .main-navigation .main-nav ul li[class*="current-menu-"] > a:after

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.