Site logo

Archived topic

Sub-Menu Item Width

6 replies · Started by Erik on April 26, 2017

Viewing posts 1–7 of 7

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

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

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

Thanks, that's the solution.

Glad we could help!

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;
}
This archived topic is closed to new replies.