I just want to find out if anyone has the same problem as me. Basically, I cannot set the background color for the visited hyperlink to a different background color.
Is this a known issue for Google Chrome? I saw people who raised a similar problem with the background image. setting the color attribute seems to work fine.
this is the code i used:
a:visited{ background-color: red; }
Any information would be appreciated.
Regards, Andrew
Use the following instead:
a { background-color: white; } a:visited{ background-color: red; }
For security reasons - in particular, to prevent sniffing of history - Chrome very strictly limits what you can do with the: visited selector.
This seems to be unsupported for security reasons, and will also be in Firefox, as described in this answer .