[thelist] css contextual selector problem

Means, Eric D eric.d.means at boeing.com
Thu Apr 4 08:22:00 CST 2002


>          got a problem with contextual selectors in netscape 4.
> here's my css:
>
> body { background-color: #fff; }
> a:link, a:active { color: #000; text-decoration: underline; }
>
> .head { background-color: #000; }
> .head a:link, .head a:active { color: #fff; text-decoration:
> underline; }
>
>          netscape 4.7 just refuses to apply the correct link color
> to the 'head' class. i tryed also div.head a:etc etc but it won't work
> as well. i used to know contextual selectors were safe (even if now
> i just can't remeber where this rule of mine come from). maybe i'm
> missing something..

Have you tried a.head:link, a.head:active?  I haven't tried them, but I seem
to recall that that's the "accepted" way of applying a pseudoselector to a
class selector.



More information about the thelist mailing list