Firefox force display of scrollbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ryanmhuc@yahoo.com

    Firefox force display of scrollbar

    Is there a way with javascript to force firefox on a page to display
    the scrollbar even when the content does not extend outside the
    viewable error?

    Going from page to page where the scroll bar displays and then doesn't
    display causes the page to visually jump when the scroll bar is shown
    then hidden.
  • rf

    #2
    Re: Firefox force display of scrollbar


    <ryanmhuc@yahoo .comwrote in message
    news:83cba9f5-b77e-45fc-a022-68a597459d3e@e2 5g2000prg.googl egroups.com...
    Is there a way with javascript to force firefox on a page to display
    the scrollbar even when the content does not extend outside the
    viewable error?
    No.
    Going from page to page where the scroll bar displays and then doesn't
    display causes the page to visually jump when the scroll bar is shown
    then hidden.
    As it does for the other hundreds of millions of web pages out there.

    --
    Richard.


    Comment

    • Jeff North

      #3
      Re: Firefox force display of scrollbar

      On Wed, 13 Feb 2008 21:26:50 -0800 (PST), in comp.lang.javas cript
      "ryanmhuc@yahoo .com" <ryanmhuc@yahoo .com>
      <83cba9f5-b77e-45fc-a022-68a597459d3e@e2 5g2000prg.googl egroups.com>
      wrote:
      >| Is there a way with javascript to force firefox on a page to display
      >| the scrollbar even when the content does not extend outside the
      >| viewable error?
      >|
      >| Going from page to page where the scroll bar displays and then doesn't
      >| display causes the page to visually jump when the scroll bar is shown
      >| then hidden.
      Javascript is a bit of overkill. Use CSS:
      html, body { width: 100%; height: 101%; }
      -- -------------------------------------------------------------
      jnorthau@yourpa ntsyahoo.com.au : Remove your pants to reply
      -- -------------------------------------------------------------

      Comment

      • David Mark

        #4
        Re: Firefox force display of scrollbar

        On Feb 14, 2:42 am, Jeff North <jnort...@yahoo .com.auwrote:
        On Wed, 13 Feb 2008 21:26:50 -0800 (PST), in comp.lang.javas cript
        "ryanm...@yahoo .com" <ryanm...@yahoo .com>
        <83cba9f5-b77e-45fc-a022-68a597459...@e2 5g2000prg.googl egroups.com>
        wrote:
        >
        | Is there a way with javascript to force firefox  on a page to display
        | the scrollbar even when the content does not extend outside the
        | viewable error?
        |
        | Going from page to page where the scroll bar displays and then doesn't
        | display causes the page to visually jump when the scroll bar is shown
        | then hidden.
        >
        Javascript is a bit of overkill. Use CSS:
        html, body { width: 100%; height: 101%; }
        For the love of God, don't do that.

        Comment

        • SAM

          #5
          Re: Firefox force display of scrollbar

          ryanmhuc@yahoo. com a écrit :
          >
          Going from page to page where the scroll bar displays and then doesn't
          display causes the page to visually jump when the scroll bar is shown
          then hidden.
          It is a question about CSS

          body { overflow-y: scroll; } /* CSS 3 ? */

          or

          body { height: 101% } /* hideous */

          The 1st doesn't work with my Safari 2, Opera 9.
          (perhaps it works with IE 6 or/and 7 ?)

          But all my browsers display (on Mac) something not too ugly with

          body { overflow: scroll }

          that display clear gost scrollbars when normal aren't necessary

          Comment

          • David Mark

            #6
            Re: Firefox force display of scrollbar

            On Feb 14, 3:28 am, SAM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
            wrote:
            ryanm...@yahoo. com a écrit :
            >
            >
            >
            Going from page to page where the scroll bar displays and then doesn't
            display causes the page to visually jump when the scroll bar is shown
            then hidden.
            >
            It is a question about CSS
            >
                body { overflow-y: scroll; }  /*  CSS 3 ?  */
            >
            or
            >
                 body { height: 101% }       /* hideous */
            That's worse than hideous. It's completely insane.
            >
            The 1st doesn't work with my Safari 2, Opera 9.
            It might work in newer versions of FF.
            (perhaps it works with IE 6 or/and 7  ?)
            As Gregor noted, IE (idiotically) displays a scrollbar whether it is
            needed or not, so it isn't part of the "problem."
            >
            But all my browsers display (on Mac) something not too ugly with
            >
                  body { overflow: scroll }
            >
            that display clear gost scrollbars when normal aren't necessary
            Horizontal and vertical of course. What a waste that would be.

            Comment

            • SAM

              #7
              Re: Firefox force display of scrollbar

              David Mark a écrit :
              On Feb 14, 3:28 am, SAM <stephanemoriau x.NoAd...@wanad oo.fr.invalid>
              wrote:
              >ryanm...@yahoo .com a écrit :
              >>
              >>Going from page to page where the scroll bar displays and then doesn't
              >>display causes the page to visually jump when the scroll bar is shown
              >>then hidden.
              >It is a question about CSS
              >>
              > body { overflow-y: scroll; } /* CSS 3 ? */
              >>
              >or
              >>
              > body { height: 101% } /* hideous */
              >
              That's worse than hideous. It's completely insane.
              I agree but if that pleases to the OP ... :-/
              > body { overflow: scroll }
              >>
              >that displays ghosts clearly of scrollbars when normal are not necessary
              >
              Horizontal and vertical of course. What a waste that would be.
              Absolutely.

              --
              sm

              Comment

              Working...