Cross browser scrolling DIV

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Belanger

    Cross browser scrolling DIV

    Has anybody heard or figured out a way to make a DIV with overflow: scroll
    to look the same in IE and Firefox

    in IE i have one table splitted in two, the bottom part is the scrolling
    (Set to a height of 100%), it displays properly..

    But firefox hardly produce the scrollbars on that division, and instead
    makes the whole page to scroll. I know there is some incompatibility between
    the two browsers as far as following the CSS standards, but i would like to
    know if somebody managed to get around it yet.

    Steve.


  • Johannes Koch

    #2
    Re: Cross browser scrolling DIV

    Steve Belanger wrote:
    [color=blue]
    > Has anybody heard or figured out a way to make a DIV with overflow: scroll
    > to look the same in IE and Firefox
    >
    > in IE i have one table splitted in two, the bottom part is the scrolling
    > (Set to a height of 100%), it displays properly..
    >
    > But firefox hardly produce the scrollbars on that division, and instead
    > makes the whole page to scroll. I know there is some incompatibility between
    > the two browsers as far as following the CSS standards, but i would like to
    > know if somebody managed to get around it yet.[/color]

    URL?

    --
    Johannes Koch
    In te domine speravi; non confundar in aeternum.
    (Te Deum, 4th cent.)

    Comment

    • Johannes Koch

      #3
      Re: Cross browser scrolling DIV

      Steve Belanger wrote:
      [color=blue]
      > Has anybody heard or figured out a way to make a DIV with overflow: scroll
      > to look the same in IE and Firefox
      >
      > in IE i have one table splitted in two, the bottom part is the scrolling
      > (Set to a height of 100%), it displays properly..
      >
      > But firefox hardly produce the scrollbars on that division, and instead
      > makes the whole page to scroll. I know there is some incompatibility between
      > the two browsers as far as following the CSS standards, but i would like to
      > know if somebody managed to get around it yet.[/color]

      URL of minimal test case?
      --
      Johannes Koch
      In te domine speravi; non confundar in aeternum.
      (Te Deum, 4th cent.)

      Comment

      • Beauregard T. Shagnasty

        #4
        Re: Cross browser scrolling DIV

        Steve Belanger wrote:
        [color=blue]
        > Has anybody heard or figured out a way to make a DIV with overflow:
        > scroll to look the same in IE and Firefox
        >
        > in IE i have one table splitted in two, the bottom part is the
        > scrolling (Set to a height of 100%), it displays properly..[/color]

        This does not sound like tabular data.
        [color=blue]
        > But firefox hardly produce the scrollbars on that division, and
        > instead makes the whole page to scroll.[/color]

        Consider that the mouse wheel will not work in this div. Very annoying.
        [color=blue]
        > I know there is some incompatibility between the two browsers as
        > far as following the CSS standards,[/color]

        Firefox follows standards; IE doesn't.
        [color=blue]
        > but i would like to know if somebody managed to get around it yet.[/color]

        There are many hacks to attempt to get IE to behave. Way too many for
        one newsgroup post... ;-)

        --
        -bts
        -This space intentionally left blank.

        Comment

        • Steve Belanger

          #5
          Re: Cross browser scrolling DIV

          The fact is that IE is behaving like i would like other browser to behave.

          Take this test:


          AS you can see in IE, the scrolling division (the mouse wheel works in
          there) is taking whatever is left on the page to show it, then make scroll
          to see the rest, so that the important stuff such as navigation constatnly
          stay in sight range.

          but take in firefox. and you will see that even thou firefox produce the
          scroll bars, it does not format the thing to make it so that it looks and
          acts as how it looks and acts in IE. I was thinking doing some kind of
          JavaScript hack to find out the pixel height of the remaining cell and
          assign it thhat way so that regardless of the resolution it would look
          good,
          and using percentage is likely to be the problem.

          AS i have the 'scrolling' cell set as height: 100% which IE assumes it to
          be
          taking 100% of the available area to display, while firefox makes the cell
          display 100% of the height required by the content, hence the page
          scrolling
          and not the cell itelf.

          Steve.
          "Beauregard T. Shagnasty" <a.nony.mous@ex ample.invalid> wrote in message
          news:Gq6be.8040 $mG3.1978@twist er.nyroc.rr.com ...[color=blue]
          > Steve Belanger wrote:
          >[color=green]
          >> Has anybody heard or figured out a way to make a DIV with overflow:
          >> scroll to look the same in IE and Firefox
          >>
          >> in IE i have one table splitted in two, the bottom part is the[/color][/color]
          scrolling[color=blue][color=green]
          >> (Set to a height of 100%), it displays properly..[/color]
          >
          > This does not sound like tabular data.
          >[color=green]
          >> But firefox hardly produce the scrollbars on that division, and instead
          >> makes the whole page to scroll.[/color]
          >
          > Consider that the mouse wheel will not work in this div. Very annoying.
          >[color=green]
          >> I know there is some incompatibility between the two browsers as far as
          >> following the CSS standards,[/color]
          >
          > Firefox follows standards; IE doesn't.
          >[color=green]
          >> but i would like to know if somebody managed to get around it yet.[/color]
          >
          > There are many hacks to attempt to get IE to behave. Way too many for[/color]
          one[color=blue]
          > newsgroup post... ;-)
          >
          > --
          > -bts
          > -This space intentionally left blank.[/color]



          Comment

          • Steve Belanger

            #6
            Re: Cross browser scrolling DIV

            Beauregard T. Shagnasty wrote:[color=blue]
            > Steve Belanger wrote:
            >[color=green]
            >> Has anybody heard or figured out a way to make a DIV with overflow:
            >> scroll to look the same in IE and Firefox
            >>
            >> in IE i have one table splitted in two, the bottom part is the
            >> scrolling (Set to a height of 100%), it displays properly..[/color]
            >
            >
            > This does not sound like tabular data.
            >[color=green]
            >> But firefox hardly produce the scrollbars on that division, and
            >> instead makes the whole page to scroll.[/color]
            >
            >
            > Consider that the mouse wheel will not work in this div. Very annoying.
            >[color=green]
            >> I know there is some incompatibility between the two browsers as far
            >> as following the CSS standards,[/color]
            >
            >
            > Firefox follows standards; IE doesn't.
            >[color=green]
            >> but i would like to know if somebody managed to get around it yet.[/color]
            >
            >
            > There are many hacks to attempt to get IE to behave. Way too many for
            > one newsgroup post... ;-)
            >[/color]

            I found a soluce :)

            1 ) i get the available height of one document
            2 ) take the height of my elements above the thing
            3 ) do math to get a result consisting of the remaining height
            4 ) apply that height to the division through JS

            Comment

            Working...