Arne <arne.luras@telia.com> wrote:[color=blue]
>Steve Pugh wrote:[color=green]
>>
baawm@yahoo.com (MarBo) wrote:
>>[color=darkred]
>>>My index page has got scrollbars turned on even when there is not
>>>enough there to scroll.
>>>
>>>
www.marbo.co.uk[/color]
>>
>> In which browser? I've tried IE6, Mozilla 1.7 and Opera 7.5 and none
>> of them show any scrollbars. (IE6 shows a greyed out vertical
>> scrollbar but that's normal - look at any short web page, e.g.
>>
http://www.google.com/)
>>[/color]
>
>IE showing the greyed out scrollbar, is it because the scrollbar is
>(sort of) included in the webpage?[/color]
It's because it's a standard part of the Windows GUI to always show
the vertical scrollbar, and to grey it out when there is no scrolling
possible.
Netscape was fairly rare case in that it hid the vertixal scrollbar
when it wasn't neede, but quite a few browsers and other programs have
now adopted that model instead of the standard Windows one.
[color=blue]
>What I mean is 100 percent width in
>IE is including the scrollbar in those 100 percent, but excluding in
>Mozilla (and other) browser. Anybody know or have a theory on this?[/color]
100% is usually 100% of the visible canvas, i.e. scrollbars are not
included width. You can see this in some browsers when you make the
window shorter but keep the same width, when the window is short
enough to require a vertical scrollbar the content also jumps a bit
horizontally as the widths need to be recalculated to account for the
sudden appearance of the scrollbars. IE's model of always displaying
the scrollbars avoids this.
There are some situations where browsers do screw up the widths with
relation to the scrollbars. e.g. some browsers quite often stop an
element background colour short of the right end edge of the page,
leaving a scrollbar wide strip of page background showing through.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>