I would like to make the superfish menu items to all be a fixed width, so that if the menu item is longer than a certain width it wraps around to the next line. At the moment, it just extends the width of the item...
I would like to make the superfish menu items to all be a fixed width, so that if the menu item is longer than a certain width it wraps around to the next line. At the moment, it just extends the width of the item...
Comments
Comment #1
mengi commentedUse CSS, width=20px or something similiar.
Comment #2
new123456789 commentedThanks for that.
I just did this and although it allows the menu items to wrap to the next line, the height of the ul changes and the second level navigation now does not sit right below the menu but instead overlaps slightly.
This is the bit that controls how far up the lower level menu starts:
.sf-menu li:hover > ul, .sf-menu li.sfHover > ul
top: 3.6em
Or do you just adjust the css settings whenever you need to (when someone adds a menu item longer than the standard)?
Comment #3
geek.geek commentedHi,
Disable the Supersubs through block configuration, then a little bit of CSS
.sf-menu ul { width: 20em !important; }