Link to home
Start Free TrialLog in
Avatar of Howard Bash
Howard BashFlag for United States of America

asked on

CSS anchor colors do not seem to be affected the link

I had this question after viewing The Menu is good, but needs a couple of Tweaks.

I added these two CSS rules:

.sub-menu-item > a:hover {
      color:red;
}

.sub-menu-item > a:link {
      color:black;
}

The color of the link does indeed show the text black,  but on hovering,  the color of the text doesn't change to red.
Avatar of Kim Walker
Kim Walker
Flag of United States of America image

You may have a more specific style that is taking precedence. Can you post a link to the live page?
ASKER CERTIFIED SOLUTION
Avatar of Jason Carson
Jason Carson
Flag of Canada image

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

ASKER

Hi,

I added the !important and it works.  Not sure what is colliding with it.  But that works for me.  Thank you sir.
Worked as required.