Width of Submenu Items
-
When I create an entry for a menu from the main menu bar, a structure with an additional submenu is created like so:
<ul id="menu-main-menu" class="menu"> <li id="menu-item-553" class="menu-item ..."> <a href="...">About us</a> <ul class="sub-menu"> <li id="menu-item-693" class="menu-item ..."> <a href="...">Our tremendous Board of Directors</a> </li> </ul> </li> ... </ul>
In this example the new menu item has a longish title, which is unceremoniously wrapped at the end of 200 pixels. This is due to a CSS rule:
.main-navigation ul ul a { width: 200px; }
I could of course redefine this CSS rule to a width of 300px in order to avoid wrapping. However, the rule selects all submenus, so all submenus would be 300px wide, even if there were no items longer than 150px in it.
So, is there anything that can be done to select just specific menu items, so that the width of each submenu can be set independently?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Width of Submenu Items’ is closed to new replies.