[thelist] Re: Changing link colors

Gerd Baumann gb at inetwire.com
Wed Nov 1 13:23:58 CST 2000


> Seb,
> in your response below, does this allow you to have different color v.link
> states on the same page?

> >
> >.whitebg {
> >         color : #000000 ;
> >}
> >
> >.blackbg {
> >         color : #FFFFFF ;
> >}

As many as you like.

a.whitebg:link {color: #000; background: #fff;}
a.whitebg:active {color: #f00; background: #fff;}
a.whitebg:visited {color: #009; background: #fff;}

a.blackbg:link {color: #fff; background: #000;}
a.blackbg:active {color: #009; background: #000;}
a.blackbg:visited {color: #f00; background: #000;}

And so on. Use color *and* background. Have fun.
Gerd




More information about the thelist mailing list