By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,286 Members | 2,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,286 IT Pros & Developers. It's quick & easy.

Cross browser scrolling DIV

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.