Questions tagged [visited]

The visited CSS pseudo-class lets you select only links that have been visited.

The selector is used to select visited links.

Browsers limits the styles that can be set for a:visited links, due to security issues.

Allowed styles are:

  • color
  • background-color
  • border-color (and border-color for separate sides)
  • outline color
  • column-rule-color
  • the color parts of fill and stroke

All other styles are inherited from a:link.

Syntax:

:visited {
    css declarations;
}

Example:

a:visited { color: #4b2f89; }
a:visited { background-color: white }

For more details check this.

116 questions
65
votes
10 answers

Set visited link color to whatever the color of un-visited link is (P.S. not the usual question)

I need to set the a:visited CSS to whatever color the normal a is set to. What I want to be able to tell the browser is, for the visited links, use the same color as the unvisited links, whatever color it is. I need to do this without specifying a…
anon355079
21
votes
6 answers

Why doesn't this a:visited css style work?

Is there any reason why this does not work on Internet Explorer or Chrome: