Disabling/Removing Scrollbars in Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jascar
    New Member
    • Jan 2006
    • 1

    Disabling/Removing Scrollbars in Firefox

    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.
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2433

    #2
    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.
    niheel @ bytes

    Comment

    • Centaury
      New Member
      • Mar 2006
      • 10

      #3
      Originally posted by jascar
      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.dt d">[/HTML]

      This should do the trick

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Originally posted by Centaury
        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.dt d">[/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.

        Comment

        • Centaury
          New Member
          • Mar 2006
          • 10

          #5
          Originally posted by Banfa
          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:


          There are still quite alot of sites out there that do not specify a doctype.

          Comment

          • Banfa
            Recognized Expert Expert
            • Feb 2006
            • 9067

            #6
            Originally posted by Centaury
            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:


            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.

            Comment

            • fleawhale
              New Member
              • Jun 2009
              • 1

              #7
              in answer to the original question, just add:

              style="overflow : hidden"

              to the body tag. this should hide the scrollbar in firefox!

              Comment

              Working...