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; } Link to comment https://forums.phpfreaks.com/topic/77482-solved-change-a-link-when-the-mouse-is-over-it/ 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 !!!!! Link to comment https://forums.phpfreaks.com/topic/77482-solved-change-a-link-when-the-mouse-is-over-it/#findComment-392275 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 Link to comment https://forums.phpfreaks.com/topic/77482-solved-change-a-link-when-the-mouse-is-over-it/#findComment-392277 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 Link to comment https://forums.phpfreaks.com/topic/77482-solved-change-a-link-when-the-mouse-is-over-it/#findComment-397948 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. Link to comment https://forums.phpfreaks.com/topic/77482-solved-change-a-link-when-the-mouse-is-over-it/#findComment-398104 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.