Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2005



Tip: Looking for answers? Try searching our database.

overflow:auto problem on IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Misha Bergal - 30 Mar 2005 08:26 GMT
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
me - 30 Mar 2005 16:00 GMT
> 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>
Misha Bergal - 31 Mar 2005 11:08 GMT
> > 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,
[quoted text clipped - 6 lines]
> <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>
[quoted text clipped - 13 lines]
> </tr>
> </table>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.