View Full Version : link colors with the class="blue" thing


the_dark_one02
02-22-2003, 07:38 PM
ok this is my problem:
nomatter how much i try this wont work, i got this css changer to work but i wont the links to change it to be the color of that scheme, i found the code but it wont work,

heres my css code (the html is below it):

this is the code for the blue scheme

A:link{color:#0000ff}
A:link.blue{color:#0000ff}
A:link.red{color:#ff0000}
A:link.green{color:#00ff00}

now i was told to add the class="" thing to my link so i did:

<a href="#" onclick="setActiveStyleSheet('blue'); return false;" class="blue">blue</a>

<a href="#" onclick="setActiveStyleSheet('red'); return false;" class="red">red</a>

<a href="#" onclick="setActiveStyleSheet('green'); return false;" class="green">green</a>

but it wont work?!?!?!?!?!
help
thanks in advance

epolady
02-22-2003, 07:42 PM
Try :

a:link{color:#0000ff}
a.blue:link{color:#0000ff}
a.red:link{color:#ff0000}
a.green:link{color:#00ff00}

the_dark_one02
02-22-2003, 07:49 PM
hey thanks but i realised what my problem was.
i forgot to change the
A:visited{}
thing so i was seeing the visited color of blue so thanks anyway