Perhaps you are redefining a:visited rule. For example, if you have more than one style sheet, for example:
<link rel="stylesheet" href="css/style-a.css"> <link rel="stylesheet" href="css/style-b.css">
In style-a.css, we found the following rule:
a:visited { color: #00ff00; }
And, on style-b.css we have:
a:visited { color: #ff0000; }
As a result, the visited link will be colored in red (# ff0000), the rule found on style-b.css , and NOT Green (# ff0000), as shown in style-a.css
For reference:
A cascade of CSS assigns weight to each style rule. When several rules apply, the one with the highest weight takes precedence. - http://www.w3.org/TR/CSS2/cascade.html#cascade
source share