473,626 Members | 3,974 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 16019
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
2658
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 wear me out...
4
2868
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 a min-width and IE hack for min-width ( width:expression(document.body.clientWidth < 550 ? "450px"...
1
2142
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 background image from the HTML. All of this does not seem so bad to me. But, MSIE 5.0 (windows)...
7
2309
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
2462
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
2955
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
1485
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
2311
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 controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
0
8266
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8199
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8638
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8505
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.