Posted By

stephcode on 06/15/13


link text bold

Versions (?)

Text shifting on bold hover

 / Published in: CSS


To correct the shift that happens on hover when the weight of the link is normal, but bold on hover.

  1. // top nav, prevent shift on hover
  2. $('ul.nav li a').each(function(){
  3. $(this).parent().width($(this).width() + 4);
  4. });

Report this snippet  

You need to login to post a comment.