Posted By

stephcode on 06/15/13


Tagged

link text bold


Versions (?)

Text shifting on bold hover


 / Published in: CSS
 

URL: http://stackoverflow.com/questions/556153/horiz-css-menu-text-shifting-on-bold-hover

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.