Re: How to define multiple CSS pseudo-classes?
by "Jason K. Chapman" <theguild(at)interserv.com>
|
Date: |
Wed, 07 Mar 2001 09:37:12 -0500 |
To: |
<hwg-techniques(at)hwg.org> |
References: |
design autumnweb |
|
todo: View
Thread,
Original
|
|
At 11:29 AM 3/6/2001 -0600, Tamara Abbey wrote:
>At 09:10 AM 3/6/01 -0500, Dane Robison wrote:
>>...but I'm at a loss as to how I can apply this sort of technique to anchor
>>tags. I tried these class selectors (in addition to the usual a:link):
>>
>>a:link.onblack
>>a.onblack:link
>
>Why not? Other than that there's no other definition in your example, they
>should work:
>
>a.onblack:link { color:black}
>then a class="onblack" href="somepage.html" should turn the link text black
I've had success doing it this way:
.onblack A:link {color: white}
.onblack A:visited {etc: etc}
I haven't tried it the other way, but it seems like it ought to work, as well.
Jason K. Chapman
======================================================
THE HERETIC by Jason K. Chapman, is a fast-paced cyber thriller
published by <http://www.happyhacker.org>. Now available in softcover,
ISBN 1-929925-38-7. Latest news at <http://www.jasonkchapman.com>
======================================================
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA