Closed Thread Icon

Preserved Topic: stop scrolling w/css Pages that link to <a href="https://ozoneasylum.com/backlink?for=18462" title="Pages that link to Preserved Topic: stop scrolling w/css" rel="nofollow" >Preserved Topic: stop scrolling w/css\

 
Author Thread
adaline
Bipolar (III) Inmate

From: look down!
Insane since: Jul 2001

posted posted 11-26-2001 21:25

How do I stop a page from scrolling using css on it? I should know this but ah-ha! I don't.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-26-2001 21:35

adaline: I haven't tried this but I'd imagine it is something like:

code:
body {
overflow: hidden;
}



see:
www.w3.org/TR/REC-CSS2/visufx.html#overflow

Emps


You're my wife now Dave

adaline
Bipolar (III) Inmate

From: look down!
Insane since: Jul 2001

posted posted 11-26-2001 21:44

hey it worked, thanks emps! I know I can always count on ya.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-26-2001 23:01

Don't rely on it for anything important, it'll fail on older browsers.

Technically, it shouldn't work at *all*, since the "body" is not the viewing window, it's merely an element inside the viewing window...

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 11-26-2001 23:22

Slime is right - I should have added that caveat. While it answers the question it possibly doesn't address the possible problem you are trying to address - most people would stick it in frames to turn off the scrolling. The fact that setting overflow on the body does work in more recent browsers (well when set to auto anyway - I think) is a nice bonus.

Emps


You're my wife now Dave

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 11-27-2001 00:20

I take it back, it *sort* of makes sense that it works that way... I guess...

« BackwardsOnwards »

Show Forum Drop Down Menu