[thelist] Changing link colors

Erika Meyer erika at seastorm.com
Wed Nov 1 12:31:43 CST 2000


Declare a class for each link.  The link you want on white is:

.white A:link{color:#0000FF; background-color:#FFFFFF;}
.colored A:link{color:#FFFFCC; background-color:transparent;}


Then, as you're marking up your text, you declare your class in the 
element around the link:

<p class="white">
links on white go here
</p>

or

<div class="colored">
links on colored go here
</div>

or whatever.

The CSS1 spec at w3.org should lend further assistance.


>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.
>Thanks....
>~Gary~
>--
>Gary Carlson
>mailto:gcarlson at imbris.com

erika at seastorm.com




More information about the thelist mailing list