Not quite what was intended…

If the element that has an overflow has a child that has a position, then the child will act like position: fixed relative to its rendered placement and the scrollable region’s scrollbar will have no effect on the positioned children.

This affects both Internet Explorer 6 and 7.

The solution? Set the scrollable element’s position to relative (in CSS). Thanks to Alex Hudson, aka. so_solid_moo, for a pointer to the fix.

(Sidenote: So, one should be able to actually use this bug to emulate position: fixed in IE6, I think.)

Tags: ,

2 Responses to “Not quite what was intended…”

  1. Adding postition: relative; to elements seems to fix a whole slurry of rendering issues in IE6, including some background image rendering issues. Voodoo.

  2. David says:

    Except IE7 implements position: fixed; so no need to emulate it.

Leave a Reply