Jump to content

why does this make my links purple


joemorris86

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...