I'm having an issue with my CSS code that changes the background color when hovering over a link. The text color is white on a blue background during hover, but if there is no hover, it's blue with a white background.
Additionally, once the link has been visited, the text remains blue with a blue background on hover. I want to make sure that the hover text color always takes precedence regardless of whether the link has been visited or not.
a:link{
color:#3399cc;
}
a:hover{
background-color:#3399cc;
color:#ffffff;
}
a:visited{
color:#3399cc;
}
a:active{
color:#3399cc;
}