473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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

[HTML]
<div style="width:600px;">
<div style="overflow:auto">
<div><table width="700px">all the table code</table></div>
</div>
</div>
[/HTML]
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 3112
drhowarddrfine
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
Amzul
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">
<div>
<table width="800px">the rest of the code</table>
</div>
</div>
</div>
</td>[/HTML]
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

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
3
by: T | last post by:
I am attempting to create a menu using <div> and <span> tags within a table cell. When the page loads, some of the classes don't seem to be applied. If I hover over the menu everything is fine...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
5
by: delraydog | last post by:
I'm creating a dynamic iframe element: var iframe=document.createElement("iframe"); I want attach a style to the element, overflow-x:hidden. However, I can not find a way to do this via...
3
by: charley | last post by:
Hello, The appearance of the page should be for the main image, lpmap.jpg, to be on the bottom, (z-index: 1), with pictures, (image0.jpg - image9.jpg), and accompaning notes to appear on top,...
2
by: SAL | last post by:
I have the following line of code in my Page_Load Event of my ASP.net page: txtExplanationofChange.Attributes.Add ("style","overflow :hidden"); which allows me to can turn off the Scrollbar of my...
3
by: zivon | last post by:
I'm making a reminder, and I want to select all the notes that thier time is passed already. this is the code I'm trying: LSQL = "select ReminderMark,ReminderDate,ReminderTime from Calls WHERE...
3
Claus Mygind
by: Claus Mygind | last post by:
I want to move some style setting into a javaScript function so I can make them variable but I get "invalid assignment left-hand side" error? see my question at the bottom of this message. It...
1
by: =?Utf-8?B?a2F3aXNo?= | last post by:
hi i have some problam in msoffice documents, problam is.... i m open ms word or ms excel file but it asking file conversion n i dont see my save document... my documents save in english language...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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,...

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.