10 November 2009 0 Comments

IE7 Bug: On window resize relative positioned elements disappear

If you have relative positioned or floating elements on your page, try to resize your page in IE7, you will see some elements disappear. I also know that sometimes hovering block displayed anchors causes this bug.

Problem is causeing from haslayout property of these elements. If we change haslayout property, the problem is going to be solved. An easy hack of haslayout property is applying “zoom:1″ to elements:

relative_elements_selector {
  zoom:1;
}

Leave a Reply