[thelist] Re: Changing link colors

Seb Barre sebastien at oven.com
Wed Nov 1 13:17:55 CST 2000


At 12:29 PM 11/1/2000 -0500, you wrote:
>Seb,
>in your response below, does this allow you to have different color v.link
>states on the same page?

Yeah you could do that as well, by specifiying the pseudo-class (I think 
that's what it's called) like :active :hover, :visited etc and assigning 
colours to each class as you see fit.

Someone else included an example of doing this already, but I can dig one 
up if needed.



>Thanks
>cmt
>
>Carleen Tracy
>Creative Lead
>B3 Interactive
>carleen.tracy at b3interactive.com
>Boston, Seattle
>
>Message: 27
>Date: Wed, 01 Nov 2000 11:38:48 -0500
>To: thelist at lists.evolt.org
>From: Seb Barre <sebastien at oven.com>
>Subject: Fwd: Re: [thelist] Changing link colors
>Reply-To: thelist at lists.evolt.org
>
>
>Forwarded to the list in case anyone else was wondering about this.
>
>
> >At 08:22 AM 11/1/2000 -0800, you wrote:
> >>How does one change link, A:link{ , colors on the same page, for instance
> >>one color for a white background and another for a colored background.
> >>Direct response please since I'm on digest.
> >
> >You can use class attributes to give tags of the same type different
> >attributes.
> >
> >In your CSS declaration you could have:
> >
> >.whitebg {
> >         color : #000000 ;
> >}
> >
> >.blackbg {
> >         color : #FFFFFF ;
> >}
> >
> >
> >Note the dot in front of the class name, it's important to put that in (to
> >tell the CSS parser that it's a class not a tag).
> >
> >Then in your HTML you would have <a href="http://whatever/" class=whitebg>
> >(or class=blackbg).
> >
> >Class attributes work on any HTML tag and really give you complete control
> >over the appearance of virtually every tag in your document.
>
>
>--- -- -
>Seb Barre - sebastien at oven.com
>OVEN Digital Toronto
>Work: 416-595-9750 x 222
>Mobile: 416-254-5078
>http://www.oven.com/
>
> >
>
>
>---------------------------------------
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !

--- -- -
Seb Barre - sebastien at oven.com
OVEN Digital Toronto
Work: 416-595-9750 x 222
Mobile: 416-254-5078
http://www.oven.com/





More information about the thelist mailing list