...

View Full Version : elements off screen without a scroll bar?



sbeener
07-06-2002, 10:26 PM
is it possible to position an element off the screen without causing a scroll bar to appear?

thanks.

A1ien51
07-06-2002, 10:38 PM
you can hide the scrollbars

<body style="overflow:hidden">

sbeener
07-06-2002, 10:55 PM
right, but it's just this content i'd like to behave like this. the rest should be normal.

A1ien51
07-06-2002, 11:19 PM
you can hide stuff with its visibility

style="visibility:hidden"


What r u trying to do??? then we could help you out a little beter

sbeener
07-06-2002, 11:35 PM
it's a scroller. i'm moving a div object across the screen while inversely moving its clip coordinates. makes it look like it's scrolling.

unfortunately, the browser thinks the page is as wide as div, not just the clipped portion, so scroll bars appear even though they're not necessary.

sbeener
07-07-2002, 12:48 AM
hooray!

wrapping everything up in another div element with overflow:hidden did the trick, although made things a little hairier in netscape.

A1ien51
07-07-2002, 03:19 AM
lol....
Netscape is what makes coding fun......

:rolleyes: :rolleyes: :eek: :rolleyes: :rolleyes:

A1ien51

Bosko
07-07-2002, 11:46 AM
Because it doesn't correct your bad code like IE does?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum