Fix li Background Repeat Bug In IE

Submitted by:Jhon Smith

Date added:01 April, 2011

Category:CSS

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.

Tags: repeat bug

Code Snippet:

    <!--[if lt IE 7]>
<style>
#leftnav li { zoom: 1;} /* haslayout=true */
</style>
<![endif]-->
 
 

Comments