[Resolved] Sub-Menu Item Width

Home Forums Support [Resolved] Sub-Menu Item Width

Home Forums Support Sub-Menu Item Width

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #310627
    Erik

    Is it possible to give the Sub-Menu Item the same width as the Menu Item?

    #310681
    Leo
    Staff
    Customer Support
    #310762
    Leo
    Staff
    Customer Support

    For it to inherit the parent item width, you would do this:

    .main-navigation ul ul {
        width: 100%;
    }
    #310783
    Erik

    Thanks, that’s the solution.

    #310785
    Leo
    Staff
    Customer Support

    Glad we could help!

    #1858803
    Mihail

    Hello. Using this code:

    .main-navigation ul ul {
        width: 100%;
    }

    I managed to make the menu items wide. That’s cool:
    https://prnt.sc/1c4u8zu

    But there’s a problem. Now the arrow is not displayed correctly:
    https://prnt.sc/1c4uh4j
    https://prnt.sc/1c4ulrn

    Can this be fixed?

    Thx for answer 😉

    #1858921
    David
    Staff
    Customer Support

    Hi there,

    The half way solution is to give them a minimum width:

    .main-navigation ul ul {
        width: 100%;
        min-width: 260px;
    }

    Adjust the min-width to suit. It does mean that some sub menus will be wider though.

    Alternatively try reducing the font size of the sub menu and its right hand padding:

    .main-navigation .main-nav ul ul li a {
        font-size: 13px;
        padding-right: 5px;
    }
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.