I reduced the font size of a superfish menu using this code
.sf-menu a
{
font-size: 15px;
padding: 8px;
}
which also reduced the height of the menu items. When I hover on a menu item, the sub menu drops down (it is a horizontal menu), but there is a big gap between the main menu item and the submenu, and I am not able to click on any of the sub-items.
How do I reduce the height of the menu items (main and sub menus) but keep the rest of the functionality as is?
To reduce or change the font-size of the menu-items, you indeed specify it in the superfish css stylesheet, like this:
If you do change the font-size, then the submenu (childmenu) doesn’t position nice. Therefore you will need to change the position of the submenus, like this:
Like this:
If you want to change the height of the menu-items, then you can change the padding attribute:
OR, you can use a height attribute like this:
In this case, also don’t forget to change the TOP attribute of the submenu (“.sf-menu li:hover ul, .sf-menu li.sfHover ul”) as explained above.