css - Change font weight of a visited link -


after user visits link, want font-weight of text go normal (400).

.title-link {   font-family: 'open sans', sans-serif;   color: #264464;   font-size: 16px;   text-decoration: none;   font-weight: bold; }  .title-link:visited {   font-weight: 400; } 

i read can't around 2010+ (https://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/), there way can still?

if using page links perhaps use jquery? problem being after page refresh go being bold.

html

<a href='#' class='title-link'>link</a> 

jquery

$('.title-link').click(function() {     $('.title-link').css('font-weight', 'normal'); }); 

seems work in jsfiddle: http://jsfiddle.net/z7kmbve7/2/


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -