joemorris86 Posted August 21, 2011 Share Posted August 21, 2011 Im using this css so when I hover my mouse over a link it underlines it and turns it red, but for some reason it also makes the link purple like its been visited.Since the text decoration is set to none for visited and active im not sure why its doing that, any ideas? }A:link {text-decoration: none}A:visited{text-decoration: none}A:active {text-decoration: none}A:hover {text-decoration: underline; color: red;} Link to comment Share on other sites More sharing options...
dsonesuk Posted August 21, 2011 Share Posted August 21, 2011 the purple color is the default color for visited, if you are testing with all links with href="#" or with the same url, and you click any of these links, they will all show as being visited, and unless you have defined your own color for visited link they will show up as purple.Also the pseudo code must be in specific order LoVe HAte : L= link, V = visited, H = hover, A = activea:link{text-decoration: none;}a:visited{text-decoration: none;}a:hover{text-decoration: underline; color: red;}a:active{text-decoration: none;} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.