otuatail Posted November 15, 2007 Share Posted November 15, 2007 Can anyone help on this. I want the the font of an anchor to change colour when the mouse is over it like this. Normal = Red Link / visited = blue text-decoration = none. Hope this style sheet code shows what is needed. Cant get the normal blue. stays yellow. td#link { FONT-WEIGHT: normal; FONT-SIZE: 11pt; color: blue; FONT-FAMILY: 'Book Antiqua'; background="#f7f7ff"; } td#link a:link, td#link a:visited { text-decoration: none; color: yellow; } Quote Link to comment Share on other sites More sharing options...
otuatail Posted November 15, 2007 Author Share Posted November 15, 2007 Solved. I need 3 styles td#link td#link a:hover td#link a:link, td#link a:visited Sorted !!!!! Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted November 15, 2007 Share Posted November 15, 2007 style declarations should always be made in this order: a:link, a:visited, a:hover, a:active Quote Link to comment Share on other sites More sharing options...
kwdrysdale Posted November 24, 2007 Share Posted November 24, 2007 style declarations should always be made in this order: a:link, a:visited, a:hover, a:active Is there a reason it should be in that order? Just curious - totally new to CSS and want to learn the correct way first. Thanks Kevin Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted November 24, 2007 Share Posted November 24, 2007 Because that is what the specification states. Read a tutorial. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.