francky wrote:
> Beauchamp Michael J CONT NPRI wrote:

>> I have a problem in IE. I have body overflow set to auto. The width
>>  of the document is all percentage and never scrolls horizontally. 
>> However, there is usually a vertical scroll.  The problem is that 
>> in IE, when the vertical scrollbar appears, the width of the page 
>> stays the same (in terms on actual screen width in pixels), 
>> creating a need for horizontal scrolling.

> I made 2 testpages, a short and a long one, both with body { width: 
> 100%; overflow: auto; }, and no horizontal scrollbar is appearing in 
> IE.

> * Short page 
> <http://home.tiscali.nl/developerscorner/css-discuss/test-IEoverflow-scrollbars-short.htm>

You'll get two vertical scrollbars and a horizontal one, when you narrow
the window enough. That goes for both test pages.

The *problem* is 'quirks mode' styles used in 'strict mode' for
controlling browser's own scrollbar. Doesn't work.

Remember that <html> isn't part of the equation in 'quirks mode', so the
style used on <body> 'overflow: auto' will control the browsers own
scrollbars. No problem with that.

In 'strict mode' OTOH the <html> element is in use, and those styles
_must me moved_ onto the <html> element in order to control the browsers
own scrollbars.
<body> is just another container, and IE will be give it its own
scrollbars when needed, because of the 'overflow: auto' on it. The
browser's own scrollbars will not be affected by 'overflow: hidden'
declared on <body>.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
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