Aureole Posted August 1, 2007 Share Posted August 1, 2007 Ok on a Website I'm working on I have a class in the CSS for a hyperlink that has visited, link and hover set. The thing is, after you have clicked on the link it changes to the visited one of course but then after that if you hover over it, it doesn't change...I've never had this problem before and it's probably something silly lol but any ideas? EDIT: Oh and if I remove the visited one then that just makes the links ugly after visiting them and doesn't really work... Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/ Share on other sites More sharing options...
AndyB Posted August 1, 2007 Share Posted August 1, 2007 make sure, then double-check, that you have declared the CSS link states in sequence LVHA (LoVe HAte) link, visited, hover, active Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-313267 Share on other sites More sharing options...
dbrimlow Posted August 1, 2007 Share Posted August 1, 2007 Andy, we should sticky post LVHA. More people get this one rule wrong than almost all others (except DOCTYPE). Dave Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-313333 Share on other sites More sharing options...
TheFilmGod Posted August 2, 2007 Share Posted August 2, 2007 make sure, then double-check, that you have declared the CSS link states in sequence LVHA (LoVe HAte) link, visited, hover, active What!! ??? I have link, visited, active, hover and it works just fine!!! Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-313557 Share on other sites More sharing options...
AndyB Posted August 2, 2007 Share Posted August 2, 2007 What!! ??? I have link, visited, active, hover and it works just fine!!! That's nice, but it's wrong. http://www.w3.org/TR/CSS2/selector.html#x27 Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-313584 Share on other sites More sharing options...
dbrimlow Posted August 2, 2007 Share Posted August 2, 2007 All links must be in the proper order or they will not work properly. The order is: a:link, a:visited then a:hover, a:active Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-314168 Share on other sites More sharing options...
Aureole Posted August 14, 2007 Author Share Posted August 14, 2007 This is one thing I never knew sorry I forgot to come back here and post after making that change but it fixed my problem and I agree this should be stickied. Link to comment https://forums.phpfreaks.com/topic/62923-visited-link-hover-selected/#findComment-323433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.