I've just wasted an afternoon figuring out that the a:visited
selector in CSS has all attributes disabled apart from a handful that are directly related to colour (see here: http://www.impressivewebs.com/styling-visited-links/ ).
Anyway, I'm wondering if it's possible to unset an attribute set for a:link
? I have an a:link
selector that fills in the background with a CSS gradient, but it would be nice if this could go grey for a:visited
.
According to the new implementation, you can set background-color
for a:visited
, but unfortunately this gets overridden by the background
attribute for a:link
because a:visited
can't use background
now.
All I'd like to do is unset background for a:visited
so that background-color
is used. Does anyone know if this is possible?
Make sure that you declare
a:visited
after thea
. Otherwise thea
will overrule it.