The reason underrighttext
is being styled like dl
is because of how you've declared your CSS for dl
:
.dl a, a:active, a:visited {
...
}
This selector, which I copy-pasted from your JSFiddle, will apply to all a
in dl
, but also to all a:active
and a:visited
. Not just the a:active
inside of dl
!
You need to fix your selectors for the active and visited state to be like this:
.dl a, .dl a:active, .dl a:visited { ... }
Right now, your active and visited links are just being styled with whatever was the last style parsed by the browser.
I've updated your jsfiddle with the correct CSS selectors. It should work now as you expect it.