...

View Full Version : Discriminating Scrollbar Supression



bluephoenix
12-30-2002, 07:10 PM
There's a way to display a window without scrollbars with CSS. But I was wondering, is there a way to differentiate between a horizontal and vertical scrollbar? That is to say, could I open a new window with a vertical scrollbar and without a horizontal scrollbar, or a new window with a horizontal scrollbar and without a vertical scrollbar?

Thanks.

redhead
12-30-2002, 07:21 PM
you can open a new window without scrollbars using JavaScript, but you can only program whether it will have scrollbars, not which scroll bars it will have.

if you wanted just the vertical scrollbar, you could open the window with scrollbars, and use this chunk of CSS on the page you wanted to be in the popup window:

<style>
.body {
y-overflow: hidden;
}
</style>

but, if your pages content stretched beyond the width of your window, it would get cut off.

hope that helps slightly... :thumbsup:

bluephoenix
12-30-2002, 07:23 PM
Sweet! Thanks a lot.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum