Put the class on the anchor itself, and then set:
.yourAnchorClass { color: inherit; }
See an example script.
Inheritance comes from the parent element. So all your decisions say that the div inherits the color of the binding. By the way, this is actually invalid html to have a div inside the a tag (block level element inside the inline element). If possible, it would be better to change them to span and then set display: block to span elements inside a .
ScottS
source share