How can I turn off scrolling if I know that I don't need it on a webpage?

Posted Posted by jerothe in XHTML / HTML     Comments No comments
Oct
1

I have encountered this before here at work. A freelance programmer was working a site that had frames and was database drive. Some of the pages he was working on would fit fine in the screen, but he still had a scrollbar for whatever reason.

If you know a specific page that you don’t want scrolling on, try this;

Add to your style sheet for a global change on every page:

<style type=”text/css”>

<!–

body {overflow:hidden;}

–>

</style>

Or as in inline style:

<body style=”overflow: hidden;”>

By default IE puts a vertical scrollbar on every page even when it doesn’t need it. That doesn’t explain anything in regards to scrolling bugs and frames per say, but it is a fix.

Post comment