VaatiKaiba Posted January 27, 2008 Share 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! Link to comment Share on other sites More sharing options...
Ike Posted January 27, 2008 Share 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. Link to comment Share on other sites More sharing options...
VaatiKaiba Posted January 27, 2008 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts