Click to See Complete Forum and Search --> : link color


chrismartz
10-01-2004, 08:07 PM
I have named the color of the links in css, but I have a link that I dont want to be the color of all the other links. What exactly would i do?
<tr><td background="images/bkg.gif"><center>IHSAA<br><a href="http://www.warsaw.k12.in.us/wchs">High School</a><br></center></td></tr> thats what i need to change!

MstrBob
10-01-2004, 08:36 PM
Well, you have two options. You could give it an inline style, such as:

<a href="http://www.warsaw.k12.in.us/wchs" style="color:#0000ff;">High School</a>

Or, you could give it an unique id, like this:

<a href="http://www.warsaw.k12.in.us/wchs" id="highschool_link">High School</a>

Then you could control all four of it's pseudo classes, so then in your style sheet you have:

a#highschool_link:link{color:#0000FF;}
a#highschool_link:visited{color:#0000FF;}
a#highschool_link:hover{color:#FF0000;}
a#highschool_link:active{color:#FF0000;}


Of course, substituting your colours...

BonRouge
10-01-2004, 09:09 PM
Or in case you have any other links that you want to be in a different colour (say black), you could create a class. .mu a {color:#000000} and add that to your link.<tr><td class="mu" background="images/bkg.gif"><center>IHSAA<br><a href="http://www.warsaw.k12.in.us/wchs">High School</a><br></center></td></tr

chrismartz
10-01-2004, 10:16 PM
thanks...it works now!