473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 15995
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Marian Aldenhövel | last post by:
Hi, I am in the process of embarking on building a large web application. I wanted to seize that opportunity to learn how to use CSS and get rid of my ad-hoc approach to HTML-coding (i.e.: add...
4
by: Ben | last post by:
I have a page for my company that I need assistance with: http://www.eastex.net/ben/NewETN/subPage.htm When you resize the window (NS or IE) small enough that you have to scroll horizontally...
1
by: John Moyer | last post by:
Thanks in advance for any help you may be able to give. I am still having difficulty with thumbnails and captions that float and columns that flow as browser window size changes. It seems to work...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
11
by: muraii | last post by:
Hi all, I've trolled through Google, a little of evolt, css-discuss archives, and sent the list a request, all to no avail. I consulted positioniseverything.net and quirksmode.org. The issue I...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
1
by: P2P | last post by:
Hi Does anyone know a simple cross-broswers vertical scrolling javascript that can call up its scrolling contents off an external html page/file? Much appreciated -- P2P...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.