Text shifting on bold hover


/ Published in: CSS
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. // top nav, prevent shift on hover
  2. $('ul.nav li a').each(function(){
  3. $(this).parent().width($(this).width() + 4);
  4. });

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.