By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,321 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,321 IT Pros & Developers. It's quick & easy.

Disabling/Removing Scrollbars in Firefox

P: 1
I'm designing a website for myself, and can't seem to get the scroll bars to go away for Firefox without using frames. Anyhelp would be appreciated.

FYI.
Already tried "scroll=no" in the body tag. Works great for Opera and IE, but doesn't do it for Firefox.
Jan 5 '06 #1
Share this Question
Share on Google+
6 Replies


Expert Mod 100+
P: 2,327
Are you talking about the scrollbars of the frame or the scrollbars on the browser?

Browser scrollbars can be fixed by making sure that you set a fixed width on your HTML tables or CSS that does not go past the width of the browser size most commonly used by your users.
Jan 19 '06 #2

P: 10
I'm designing a website for myself, and can't seem to get the scroll bars to go away for Firefox without using frames. Anyhelp would be appreciated.

FYI.
Already tried "scroll=no" in the body tag. Works great for Opera and IE, but doesn't do it for Firefox.

Try to REMOVE the doctype such as:
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/HTML]

This should do the trick
Mar 1 '06 #3

Banfa
Expert Mod 5K+
P: 8,916
Try to REMOVE the doctype such as:
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/HTML]

This should do the trick
This is a very bad idea, the doc type is now a standard part of the HTML specification and using it ensures that you html will appear more similarly in all browsers.

Without the doctype browsers operate in quirks mode and often implement non-standard functionality.

General consensus on every other website that I read and from W3C is that doctypes are a good thing.
Mar 1 '06 #4

P: 10
This is a very bad idea, the doc type is now a standard part of the HTML specification and using it ensures that you html will appear more similarly in all browsers.

Without the doctype browsers operate in quirks mode and often implement non-standard functionality.

General consensus on every other website that I read and from W3C is that doctypes are a good thing.
Hi Banfa, a BASIC webpage page renders fine in every browser with or without the doctype, and to remove the doctype is just an easy solution for this.
Take a look at 1 of my sites:
http://www.imagine-x.net/index.php

There are still quite alot of sites out there that do not specify a doctype.
Mar 5 '06 #5

Banfa
Expert Mod 5K+
P: 8,916
Hi Banfa, a BASIC webpage page renders fine in every browser with or without the doctype, and to remove the doctype is just an easy solution for this.
Take a look at 1 of my sites:
http://www.imagine-x.net/index.php

There are still quite alot of sites out there that do not specify a doctype.
The standards say that a DOCTYPE should be included and generally speaking it is never a good idea to write non-standard code. It makes the code platform implementation dependent and can cause maintenance issues (when things that where never in the standard get dropped).

In fact the HTML standards where introduced because of the way MS and Netscape were diverging causing coding problems with you wanted you pages to appear correctly on both.

Learning to write your code in the correct standard is a good habit to pick up and like anything that needs learning it is easier to learn on the simple examples and then apply your knowledge when a more complex example comes along rather than just write your code any old way that seems to work in the simple examples and then having to learn the standard that you should have been using all along when you get the complex example that must be written to standards in order to work.

Working to standard breeds good reliable code that works cross platform, has lower maintenance, better accessibility and is more future proof.
Mar 6 '06 #6

P: 1
in answer to the original question, just add:

style="overflow: hidden"

to the body tag. this should hide the scrollbar in firefox!
Jun 7 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.