W3C home > Mailing lists > Public > www-style@w3.org > August 2000

Re: css and a:visited problem...

From: Eric Benvenue-Jennings <eric@rapid13.org>
Date: Fri, 25 Aug 2000 14:14:34 -0400
Message-Id: <p04320400b5cc665120d5@[10.5.2.221]>
To: Jason Manaigre <jmanaigre@iisd.ca>, "'www-style@w3.org'" <www-style@w3.org>
You can create custom link colors using classes (these might be 
psuedo classes - I'm still learning myself). Here's an example:

a.one:link { attribute: value; }
a.one:active { attribute: value; }
a.one:visited { attribute: value; }

a.two:link { attribute: value; }
a.two:active { attribute: value; }
a.two:visited { attribute: value; }

a.three:link { attribute: value; }
a.three:active { attribute: value; }
a.three:visited { attribute: value; }

you then assign each link to a class:

<a href="http://link.com" class="one">link</a>

Make sense?



At 11:40 AM -0500 8/25/00, Jason Manaigre wrote:
>Hello everyone, I'm fairly new to css and have run into a problem.
>
>I have a whole referenced to an external css file, no problems there.
>
>I use a <a href="researchtools.htm" class="whitelinks">Research Tools</a> to
>make some links white while other links in the rest of the page are brown.
>
>Now, I want to change the visited links to say purple, so now all the links
>change to purple (including the ones I have classes as white.)
>
>I added :
>
>A:Visited  {
>	color: purple;
>}
>
>To change my visited links.
>
>Is there a way to stop this from affecting my whitelinks?
>
>Thanks people
Received on Friday, 25 August 2000 14:15:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:05 GMT