Fix li Background Repeat Bug In IE

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

A bug seems to occur when you add a negative margin to a list item in IE6. The background image applied to the list item gets repeated randomly and generally messes up. Add this little gem to your head to fix the problem. Remember to change the id tag to your own.

Copy this code and paste it in your HTML
  1. <!--[if lt IE 7]>
  2. <style>
  3. #leftnav li { zoom: 1;} /* haslayout=true */
  4. </style>
  5. <![endif]-->

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.