It works fine until I visit a link. Then when I go back to the page and hover over the link again the underline won't show up. This is happening in all browsers I tested it in.
There might be some issues with links. If I have this straight, the method used to define link pseudoclasses is to define them in this order so that they work right:
a:link
a:visited
a:hover
a:active
I think that's how it goes. But a different order can cause issues in some browsers, for one reason or another. This may/may not be the cause.
Originally posted by MstrBob There might be some issues with links. If I have this straight, the method used to define link pseudoclasses is to define them in this order so that they work right:
a:link
a:visited
a:hover
a:active
I think that's how it goes. But a different order can cause issues in some browsers, for one reason or another. This may/may not be the cause.
probably is, its also listed in w3c that it has to be in the order i believe
P.S. I found out what was wrong. I'm so stupid. It had nothing to do with the links. It was somewhere later in the CSS file where I accidentally had something like this:
Code:
.class a:link, a:active, a:visited {
//stuff here
}
But it should have been this:
Code:
.class a:link, .class a:active, .class a:visited {
//stuff here
}
Bookmarks