UltrasoundJelly
UltrasoundJelly

Reputation: 1900

CSS style a:visited not being honored

Anyone know why my followed link color of grey is not being honored by Safari? Works on Chrome.

<style type="text/css">
a:link {
    color:#6495ED;
}
a:visited {
    color : grey; 
} 
a:active,
a:hover {
    color: white;
}

Upvotes: 0

Views: 69

Answers (2)

Nicholas Hazel
Nicholas Hazel

Reputation: 3750

Just a callout, hex values offer MUCH more flexibility.

The code would be #808080 instead of grey (or as you've done, gray).

Play with Hex Values here:

Upvotes: 0

Stefan Neubert
Stefan Neubert

Reputation: 1054

Probably because it is gray in the HTML color names instead of grey

Grey is British English, but spelling in coding is always (as far as I've seen) American English.

Upvotes: 1

Related Questions