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!

Overwriting CSS A:link within an html page

Status
Not open for further replies.

TheDemon

Programmer
Feb 7, 2000
108
GB
Hi,

This one's been driving two of us crazy....are we just being thick?

The <td> tags within an include file are being dictated by my CSS, as are any <a href> tag. However, I want to overwrite the A:link command in my CSS because I want cerain links, not all of them, to be another color.

How do I do this please before I pull all my hair out?

Thank you for your time!
 
Just define a seperate class...
Put this with the other style stuff:
.other {
color: red;
}
.other:hover {
color: blue;
}

And then this in the body:
<a href=&quot;url&quot; class=&quot;other&quot;>Link</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top