I would like to place a relatively positioned element inside a fixed width
div with overflow:scroll.   It works fine in FF, and in IE6 in quirks mode.
But the minute I put IE6 in "standards" mode, the scroll bar quits working
and the overflow from the inner element becomes visible outside the outer
div.

The code below generates a blue div scrolled horizontally inside a yellow
div.  If you remove the URL from the doctype in IE6 it works, but otherwise
in IE6 the scroll is dead and the blue div escapes the right side of the
yellow div.

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd";>
   <div style="width: 600px; overflow: scroll; margin: 0px 200px;
background-color: yellow;">
         <div style="width:1500px;
height:30px;background-color:blue;position:relative;">This is div text</div>
    </div>

Alan K. Gay 


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to