Archive for September, 2009

position:relative and overflow in Internet Explorer

I’ve been working on this layout that had a relatively positioned element inside a container with overflow. Everything looked good until I switched to IE7 and noticed that my positioned element remained fixed.

To solve this, I added position:relative to the container. This seems to work for both IE6 and 7.

Leave a Comment