473,561 Members | 3,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16008
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.*********@ex ample.invalid> wrote in message
news:Gq******** *********@twist er.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
2641
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 tables until either the result is OK or I decide to start over). However I do not seem to be able to get it right. Experimentation is beginning to...
4
2865
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 (because of logo image), scrolling right breaks the layout. I'm using 100% div widths, and these apparently don't reset when scrolling. I tried using...
1
2137
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 in MSIE 6 and Mozilla. Konquerer (old version) does not display scroll bars for overflow: auto. NN 4 does not see the style sheet, but gets the...
7
2306
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
11
2447
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 have seems simple enough that I'd have turned it up on any of those sources, but, alas, that's not the case. So, please refer to
2
2951
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 url page
1
1483
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 <plsemail@yahoo.com>
15
2302
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, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in...
0
7647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7570
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7859
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5187
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2068
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1181
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.