VaatiKaiba Posted January 27, 2008 Posted January 27, 2008 I've got the following CSS file: .text { font-family: sans-serif; color: black; font-size: 13px; } And I need to put something to change hyperlink colours. However, in the body section of the page, I have already used the link, alink, and vlink commands in the body tag. How can I change the hyperlink colour for just in the areas where that CSS is implemented? Thanks!
Ike Posted January 27, 2008 Posted January 27, 2008 .text > a:link {color: red;} .text > a:visited {color: green;} .text > a:hover {color: blue} .text > a:active {color: pink;} That should do it.
VaatiKaiba Posted January 27, 2008 Author Posted January 27, 2008 .text > a:link {color: red;}.text > a:visited {color: green;} .text > a:hover {color: blue} .text > a:active {color: pink;} That should do it. That works perfectly, thanks so much!
Recommended Posts