Forum Moderators: open

Message Too Old, No Replies

No scrollbars

How to?

         

kingkelly

4:19 am on Mar 6, 2003 (gmt 0)

10+ Year Member



Im launching an HTML page off a CD in full screen mode, but i dont want the scrollbars to be there. Any code i can put in the HTML documents to not have scrollbars?

bill

6:33 am on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That would require you to open the window with JavaScript. There is some great code in this thread: handy, generic javascript coding [webmasterworld.com]

hint:look for scrollbars=no

MrSpeed

9:27 pm on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can also set up a frameset where the top frame is set to "0" scrolling property is set to NO.

Cheers

SuzyUK

10:19 pm on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



also (no javascript required)

in the HTML:
<body scroll="no">
or:
<html style="overflow: auto;">

or in an embedded/external stylesheet..
html {
overflow: auto;
}

this method only works as long as the content does actually fit into the page you are viewing which maybe isn't a bad thing because if it doesn't the scrollbars will automatically appear..

also this only actually hides them in IE the other browsers will not display them unless required, by default..

Suzy

SethCall

2:57 am on Mar 7, 2003 (gmt 0)

10+ Year Member



just so kingkelly knows:

overflow:hidden will make NO bars show up, ever, which sounds like you may want that...

but overflow:auto is usually simply more practical