472,125 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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.
Jul 21 '05 #1
5 15935
Steve Belanger wrote:
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.


URL?

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 21 '05 #2
Steve Belanger wrote:
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.


URL of minimal test case?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 21 '05 #3
Steve Belanger wrote:
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..
This does not sound like tabular data.
But firefox hardly produce the scrollbars on that division, and
instead makes the whole page to scroll.
Consider that the mouse wheel will not work in this div. Very annoying.
I know there is some incompatibility between the two browsers as
far as following the CSS standards,
Firefox follows standards; IE doesn't.
but i would like to know if somebody managed to get around it yet.


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

--
-bts
-This space intentionally left blank.
Jul 21 '05 #4
The fact is that IE is behaving like i would like other browser to behave.

Take this test:
http://69.27.100.145/forums/view_post.php?id=24

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.*********@example.invalid> wrote in message
news:Gq*****************@twister.nyroc.rr.com...
Steve Belanger wrote:
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..
This does not sound like tabular data.
But firefox hardly produce the scrollbars on that division, and instead
makes the whole page to scroll.


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


Firefox follows standards; IE doesn't.
but i would like to know if somebody managed to get around it yet.


There are many hacks to attempt to get IE to behave. Way too many for

one newsgroup post... ;-)

--
-bts
-This space intentionally left blank.


Jul 21 '05 #5
Beauregard T. Shagnasty wrote:
Steve Belanger wrote:
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..

This does not sound like tabular data.
But firefox hardly produce the scrollbars on that division, and
instead makes the whole page to scroll.

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

Firefox follows standards; IE doesn't.
but i would like to know if somebody managed to get around it yet.

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


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
Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

34 posts views Thread by Marian Aldenhövel | last post: by
1 post views Thread by John Moyer | last post: by
15 posts views Thread by CMM | last post: by
reply views Thread by leo001 | last post: by

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.