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 */
      left:0;
      text-align:left;
      
}


http://projectangelhugs.com/
http://projectangelhugs.com/project.css
nsitedesignsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
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
0
COBOLdinosaurCommented:
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;


Cd&
0
Chris StanyonWebDevCommented:
you can't declare an hover and continue to target a different element
You can ;)

#navigation li:hover ul { border: 1px solid green; }

This will set the style for the child UL when the parent LI is hovered on.

If you want to move the whole sub-menu across, just change the left property:

#navigation li:hover ul, #navigation li.sfhover ul {
    left: 20px;
}

Open in new window

If you want to create a left padding within the submenu, then you'll need a new rule to set the left padding of the A tags only in a submenu:

Make sure this rule comes after line 113 of your stylesheet!

#navigation ul li ul a:link {
    padding-left: 20px;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nsitedesignsAuthor Commented:
All I wanted to do was add padding to submenus.  Chris provided the easiest solution.  Thanks alL!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.