Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

left justify drop down buttons

Why am I not seeing this - I need to add some left margin/padding to drop downs to this very old site.  When I add padding or margin to the below element it messes it up

#navigation li:hover ul, #navigation li.sfhover ul { /* lists nested under hovered list items */
Avatar of Gary
Flag of Ireland image

Your css is wrong, you can't declare an hover and continue to target a different element
Not sure what you want to do
Try something like
#nav ul li a {padding:5px}

and remove the padding from
#navigation a:link, #navigation a:visited
if you mean the submenu elements then the problem is on the a element

#navigation a:link, #navigation a:visited {

In project.css has the padding set to 0;

Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nsitedesigns


All I wanted to do was add padding to submenus.  Chris provided the easiest solution.  Thanks alL!