Minimum offset to window bottom
March 24, 2003 by Marja Ribbers-de Vroed


I've specified a small offset (< 16px) to the bottom border of the browser window and it is fine in all browsers as long as there is no horizontal scrollbar.
However, when there is a scrollbar the results in various browsers differ. Depending on the offset value I specify, the layer may even be partly covered by the scrollbar (eg. in Netscape 4.x). Why is that?


To be able to dynamically determine the layer position, the PLP script requests the available window width/heigth from the browser.
But browsers handle the presence or absence of scrollbars differently: some browsers subtract the height of the scrollbar from the window height when asked for the available window height, while others don't.

There is no way to explicitly detect the presence or absence of scrollbars, so the PLP script has no way of dynamically adjusting the position of a layer to that.

If you want to make certain that a layer is never partly covered by a possible scrollbar in any browser, then specify a minimum offset of about 16px to the bottom window border.

Marja Ribbers-de Vroed

Marja Ribbers-de VroedWell, what's there to tell?

I worked as a software engineer for a well-known Dutch software company for about 10 years. But then I decided I did not want to work there anymore.
Since then, I've been working with my husband in our own company.

I "discovered" web development early 2000, and I soon found out that I could actually create my own extra (DHTML) features in Dreamweaver by building custom extensions.
My first extension was Cross-browser AutoScroller, but I've developed several other ones since then.

See All Postings From Marja Ribbers-de Vroed >>

Place your comment about Minimum offset to window bottom

You must me logged in to write a comment

Be the first to place a comment