lastlifelost Posted January 27, 2011 Share Posted January 27, 2011 a:visited { font-style:italic;} Simple bit of code I'm trying to use on this project that doesn't seem to be working. Works fine in IE and others, but Chrome isn't playing nice. What am I missing here? Link to comment Share on other sites More sharing options...
dsonesuk Posted January 28, 2011 Share Posted January 28, 2011 Its because of a security issue, where hackers can identify the sites you have visited by a style used for a visited link, link color changes, are still acceptable, font styling, background image changes are apparently not.Note: Newer Firefox(my current version 3.6.12) browser, also have implemented this visited link rule, which does not allow colour change either.Also when assigning styling to anchors use the default setting in the anchor selector only.a {text-decoration: none: font-family: Calibri; padding: 0 10px; }only add the styling that changes to the pseudo classes, in this order.a:link{ color:blue;}a:visited{ color: purple;}a:hover{ color: red; text-decoration: underline;}a:active, a:focus{ color:lime; text-decoration: underline;}/*not reliable to be implement in all browsers i generally use class assigned to link to apply styling*/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.