473,516 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

overflow:auto problem on IE

I would appreciate if somebody explained to me:

a) why the following HTML correctly handles overflow in FireFox but
does not in IE
b) how that can be fixed.

In FF when the browser window is resized so div d2 doesn't fit in d1,
d2 gets a horizontal scrollbar. In IE div d1 is resized to fit d2.

<body >
<table width="100%" border=1>
<tr>
<td>
<div id="d1" width="100%" style="border:1px solid red">
<div id="d2" style="overflow:auto;">
<table >
<tr>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</body>

Thanks in advance

Jul 21 '05 #1
2 12547
me
"Misha Bergal" <mi******************@gmail.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
I would appreciate if somebody explained to me:

a) why the following HTML correctly handles overflow in FireFox but
does not in IE
I don't use FF so no joy there.
b) how that can be fixed.


See below:
Good Luck,
me

<table width="100%" border=1>
<tr>
<td>
<div id="d1" width="100%" style="border:1px solid red">
<div id="d2" style="position:relative; width:200px; height:115px; z-index:1;
overflow: auto">
<table>
<tr>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
Jul 21 '05 #2
me wrote:
"Misha Bergal" <mi******************@gmail.com> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
I would appreciate if somebody explained to me:

a) why the following HTML correctly handles overflow in FireFox but
does not in IE

[...]
See below:
Good Luck,
me

<table width="100%" border=1>
<tr>
<td>
<div id="d1" width="100%" style="border:1px solid red">
<div id="d2" style="position:relative; width:200px; height:115px; z-index:1; overflow: auto">
I need d2 to be width="100%", so it resizes with the document.
Specifying fixed width is not an acceptable solution for me :-(.
<table>
<tr>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
<td>sssssssssssssss</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
23156
by: Marek Mänd | last post by:
<select multiple style="height:200px;"> <option>a <option>b </select> Why does Mozilla draw the vertical scrollbar to the SELECT html element? There is plenty of void room below two OPTIONs in the SELECT box, so there is no need for that. How do i get the overflow:auto like thing working in mozilla based
2
6357
by: matthewmacchia | last post by:
I believe this is a Firefox bug but I was hoping someone found a workaround. I have implemented drag and drop functionality, but if I try to drag an element from a div that happens to have a div with an "overflow: auto" it seems to lose the onmouseover event for my target. Anyone come across this issue and found a resolution? Please...
4
23200
by: Harry | last post by:
I just implemented an "overflow: auto" for a div in the main message window: http://www.auriance.com/docs/interaction/ This works as expected in Internet Explorer and Opera, but in Firefox it doesn't. There shouldn't be a scrollbar on the page, but instead, on the div that shows the messages. Any idea? Thanks,
1
4035
by: Jefferds.A | last post by:
Hi, I'm putting together a little database of individuals categorized by family. I have two lists, one that contains family names and one that contains individuals' names. When you click on a link in the first list, it generates from a mysql database all the people associated with that family. When you click on an individual's name, it...
4
12501
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse:collapse; width:100%; height:100%;'> <tr><td colspan='2' style='height:3em; border-bottom:1px solid
3
19061
by: Otto de Voogd | last post by:
I posted the problem below in alt.www.webmaster before, but no-one knew the answer, however someone suggested this group as a good place to ask. I am trying to fit images into a browser window using CSS and in particular overflow:auto; The idea being that if a user's window is too small the image becomes scrollable (horizontally) and a...
5
13357
by: vunet.us | last post by:
How can I hide scrollbars which appear in my floating div element with CSS property overflow:auto? I do need to use auto overflow. Thank you.
14
14255
by: MrPutty | last post by:
Hello everyone! It seems I've finaly found a place with savy folks ;-) The following problem has me puzzeled - hopefully someone can help me out! ------------------------------------------------ - head - ------------------------------------------------ - - -...
1
1822
by: Jake Barnes | last post by:
I searched comp.lang.javascript on Google Groups but I didn't find an answer when I searched for "viewport" or "viewport div" or any combination of words using "viewport" so now I think I'm searching for the completely wrong thing. Perhaps someone can tell me what I should be searching for? I've got a div with overflow set to "auto": ...
4
5060
by: obanite | last post by:
Hi! I'm having issues with css in FF and IE regarding overflow: auto and font-size. If I have a div like this: <div style="overflow: auto"> <span>ipsumlorendictowhateveripsumlorendictowhateveripsumlorendictowhateveasdasdripsumlorendictowhateverasdasdasdjasjdioasjiosdjasiojdoasjisdojiasojdo </span> </div>
0
7276
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
7182
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
7408
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
7581
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...
1
7142
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...
0
7548
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...
1
5110
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...
0
3267
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...
0
488
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...

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.