Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Someone set me straight

Status
Not open for further replies.

ITGL72

MIS
Jul 2, 2001
105
US
I am working on a page and doing some basic CSS on it.
I have a set of links in a color table so letting the tables do the default BLUE wont due. I want the links to looks white, and hover them to yellow.

I got this to work for the most part. However the links on the blue back ground I want to display as white and hover yellow just dont work.

Heres what I have in my .css file:

A:link {
color: Blue;
text-decoration : underline;
}
A:active {
color: Black;
}
A:visited {
color: Blue;
}
A:hover {
color: #FF0000;
text-decoration: none;
}


A.BART:link {
color: White;
text-decoration : none;
font-family : Arial, Helvetica, sans-serif;
font : bold;
font-size : larger;
}
A.BART:active {
color: Black;
}
A.BART:visited {
color: Blue;
}
A.BART:hover {
color: YELLOW;
text-decoration: none;
}




And for the links I want to display the BART class I have:

<a href=&quot;link.htm&quot; class=&quot;BART&quot;>Link 4</a>


But the link font continues to come up BLUE, and not in the FONT selected. Any suggestions?
 
You may be getting debugging noise from a:visited and a.BART:visited. It looks like your color scheme will work with a virgin page until you test Link 4 by clicking it. Use a different color for visited and see what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top