Sub-menu item height in twenty twelve child
-
I’m trying to reduce the height of sub-menu items in my twenty twelve child theme.
I’ve tried:
ul.sub-menu li, ul.sub-menu li a { height: 30px !important; line-height: 30px !important; }
with no luck – the resulting submenu item height is 47px as seen by Chrome Developer Tools. So I thought I’d try the specific class for the first menu item:
.menu-item-156, .menu-item-156 a { height: 30px !important; line-height: 30px !important; }
with still no luck. Finally I assigned a class in the child-theme’s menu by turning on Screen Options–> CSS Classes and assigning the class “custom_sub_menu” to the first sub-menu item, then adding this bit of CSS:
.custom_sub_menu { height: 30px !important; line-height: 30px !important; }
Still no luck – what am I missing?
I’ve got approximately 13 sub-menu items under one of my main menu items, and there’s an extraordinarily large amount of vertical space between my sub-menu items. Any help would be greatly appreciated.
Thanks!
- The topic ‘Sub-menu item height in twenty twelve child’ is closed to new replies.