Fwd: Re: [thelist] Changing link colors
Seb Barre
sebastien at oven.com
Wed Nov 1 10:41:55 CST 2000
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/
More information about the thelist
mailing list