473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Disabling/Removing Scrollbars in Firefox

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
6 19351
Niheel
2,460 Expert Mod 2GB
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
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
9,065 Expert Mod 8TB
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
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
9,065 Expert Mod 8TB
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
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

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

Similar topics

2
by: Cy | last post by:
Hi, I have a menu that toggles correctly in IE but is failing in FireFox V.1 and Netscape 7.1. The FireFox JavaScript Console is returning the following error; Error:...
5
by: Mark | last post by:
How do I scroll two textareas in sync with FireFox/Mozilla? The IE solution has been posted before by Martin Honnen.
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
3
by: torbs | last post by:
Hi I have two quicktime plugins embedded in a webpage. I want to hide one and display the other. Then I want to load a movie into the hidden player. When the first player is finished playing, I...
5
by: jvb | last post by:
I hope this is the correct place to ask this question. If not, would some kind person tell me where I should? In IE, one can use the javascript code, "document.body.scroll='yes/no'" to dynamically...
2
by: Ernst Elzas | last post by:
Hello, If these questions have been asked numerous times before, please excuse me, I have not managed to find the information I needed. I'm making a webpage (for now it will only be in two...
5
by: juergen.riemer | last post by:
Hi, following code does not render scrollbars in firefox 1.5.x. Bug? Workaround other than to innerHTML an absolute positioned element after loading? <html> <body> <div...
1
by: houghm | last post by:
Hello, I'm having a problem and I wonder if anyone can help? I have a div on which I have specified {overflow-y:auto; overflow-x:hidden;}. This div contains a table with a varying number of...
27
by: Inny | last post by:
The following 3 pages which are popups on my site are not rendering in mozilla firefox. Source is visible instead. Any idea why? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.