Changing the padding in sub-menus
-
I know that for changing the padding on the main menu I need this code:
#mainnav-menu a {
padding-top: .5em;
padding-bottom: .5em;
}But… What code I need for changing the padding of the sub-menus?
I’m using Dynamics news theme. Thank you very much
The blog I need help with is: (visible only to logged in users)
-
The Dynamic theme uses the sub-menu class for the sub-menus. Adjust the padding by using this code:
.sub-menu { padding-top: .5em; padding-bottom: .5em; } -
Hello. I introduced that code but it didn’t work. No changes in the submenus… Is it necessary introduce any special character, like #, or name, or something? Thank you very much
-
Sorry, that code was affecting the entire sub-menu box instead of the individual elements. Try this:
.sub-menu li { padding-top: .5em; padding-bottom: .5em; } -
Sorry, but it didn’t work. I don’t know if I’m explaining correcty what I need. I need smaller green boxes in the sub-menus, so that I can adapt the green box size to the text size. Thank you!
-
Hi there, to reduce the top and bottom padding on the submenus, add the following CSS and adjust the 1em values as desired.
#mainnav-menu ul a { padding-bottom: 1em; padding-top: 1em; } -
-
- The topic ‘Changing the padding in sub-menus’ is closed to new replies.