Posted By

1man on 07/16/06


Tagged

css ie background repeat bug


Versions (?)

Who likes this?

18 people have marked this snippet as a favorite

jonhenshaw
meth
postNuKe
panatlantica
fatihturan
horizens
dojob
icarus
fael
vali29
aziz
SpinZ
eriksagen
chchrist
dinkan
bobbym245
ijasnijas
atulkransingh


Fix li Background Repeat Bug In IE


 / Published in: 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.

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

Report this snippet  

You need to login to post a comment.