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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS - hover/link

Status
Not open for further replies.

ayersart

Technical User
Dec 21, 2004
69
US
What is wrong with my css style sheet?

.bodystyle {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 5px;
link: #CC0000;
hover: #000000;
}

The link and hover don't work. I find that when I change the links they change the links on every area of my page, instead of just the bodystyle. Thanks for any help
 
thats because link and hover are object stylings not properties of a style class.



Code:
.bodystyle{
...
}
.bodystyle a:link{
color:#CC0000;
}

.bodystyle a:hover{
color:#000000;
}

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top