Home Notes Web development Internet Explorer resize bug

Internet Explorer resize bug E-mail
Thursday, 12 March 2009 10:15

Internet Explorer 6 and 7 have a bug where resizing a window leaves some elements fixed in position.  Specifically, elements with the style property position:relative are affected.

I came across many solutions to the problem after a search for "ie resize".  Most of them involved JavaScript.  However, I was lucky enough to find the simplest solution of all here: just add position:relative to the body element.  That's it!