471,599 Members | 1,227 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

problam with IE style overflow

130 100+
hello all i have a problam its a bit strang hope you can help me:

i am trying to put a table inside a div and i dont want the table to overflow the div size

i did this

<div style="width:600px;">
<div style="overflow:auto">
<div><table width="700px">all the table code</table></div>
now in FF its working like i want to work i can scroll to the right and to the left if the width of the table is bigger then 600px but in IE the scrollbar is showing but its not good still

any ideas?

note: the table size is changing so no point puting size in it

hope u can understand me
Nov 20 '07 #1
2 3063
7,435 Expert 4TB
width doesn't work correctly in IE and, instead, will expand to contain overflow items. Is that stupid or what?
I would say to try min-width but min-width doesn't work in IE at all. Is that stupid or what?
I don't have IE available right now but maybe that will give you something to think about for a while.
Nov 20 '07 #2
130 100+
thanks man i mange to solve it

my divs were inside a table so i just width the <td> like so::

[HTML]<td width="600px">
<div style="width:600px;overflow:auto">
<div style="overflow:auto">
<table width="800px">the rest of the code</table>
prety ugly ugly code but its working both FF and IE,
not sure if i didnt have the upper <td> what will i do...
Nov 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by delraydog | last post: by
3 posts views Thread by charley | last post: by
1 post views Thread by =?Utf-8?B?a2F3aXNo?= | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

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.