Hi Francky,
Thanks for your help. Unfortunately, I'm blocked from seeing your website and
have no public server myself to post to. However, knowing that this is not
common and probably not a browser problem is a big help. Now I can assume that
there is something in my code that is causing the problem. I'll take your
advice and look for padding issues.
Thanks again,
Mike
-Original Message-
From: francky [mailto:[EMAIL PROTECTED]
Sent: Friday, March 09, 2007 3:22 PM
To: Beauchamp Michael J CONT NPRI
Cc: css-d@lists.css-discuss.org
Subject: Re: [css-d] Vertical Scrollbar in IE ... Causes horizontal scrollbar
Beauchamp Michael J CONT NPRI wrote:
Hi,
This is probably a FAQ but I can't find the answer...
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. It's as
if IE doesn't notice that the scrollbars are using up some of the horizontal
space so it never resizes to compensate.
Can anyone tell me how to solve this? At the moment I have overflow-y:scroll
set so the scrollbar is just always there. I guess it works... sort of.
[unfortunately, I can't post or link to the code.]
Thanks in advance for any help or pointers to help.
Hi Michael,
Strange ... normally IE is *always* making space for the vertical scrollbar (up
to IE6 under WinXP; in IE6 a transparent vertical scrollbar, if not needed).
Is it IE7 and/or Vista which is giving your results?
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
* Long page
http://home.tiscali.nl/developerscorner/css-discuss/test-IEoverflow-scrollbars-long.htm
Is the long page showing the hor. scrollbar at your side? [1] If not, maybe
there is in the css of the content of the longer page something like an element
with a width in % and a padding-left and/or padding-right as well?
Could be also some IE expanding bug - hard to say without code...
Maybe you can isolate the problem in a minimal error page [2] [3], replace
the remaining content with Lorem's and 1-color images, and send us a link to
that?
Greetings,
francky
[1] Not yet results of Browsershots at this moment
http://browsershots.org/website/http://home.tiscali.nl/developerscorner/css-discuss/test-IEoverflow-scrollbars-long.htm#success
[2] The D-Zero Method
http://home.tiscali.nl/developerscorner/golden-rules-of-css.htm#r13
[3] PIE: Mystery Bug
http://www.positioniseverything.net/articles/mys-bug.html
__
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/