"Jean Pion" <Je*******@hotmail.com> wrote:
[CSS pseudo class question]
CSS questions belong in comp.infosystems.
www.authoring.stylesheets
crossposted and f-up set
Can I have a class selector the pseudoclasses like:
.menuw { general_stuff_for_this_class; }
a.menuw:link { special_for_link;}
a.menuw:visited {special_for_visited; }
a.menuw:hover { special_for_hover; }
a.menuw:active { special_for_active; }
Sure, but if the missing HTML looks like this:
<a href="foobar.htm" class="menuw">foobar</a>
Then the a.menuw:link rule is more specific than the .menuw rule,
therefore the .menuw rule is superfluous.
http://www.w3.org/TR/CSS21/cascade.html#cascade
--
Spartanicus