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... Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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!!! Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. 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.