Computing.Net > Forums > Web Development > Div operlaps table problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Div operlaps table problem

Reply to Message Icon

Name: davser
Date: April 19, 2007 at 03:01:51 Pacific
OS: Windows
CPU/Ram: Centrino 512
Product: Intel
Comment:

I have a div inside a table, with the on_click method of a button I use javascript to put the div with display:block and add some text.

The problem is that the table don't resize and the div overlaps the table if the content is big.

[CODE]<table border='0' cellpadding='2' cellspacing='1' width='100%' height='100%' bgcolor='#e15616'>
<tr>
<td>
<div id="myLine2" style="Display: none;">
</div>
</td>
</tr>
</table>
[/CODE]

Can anybody know how to make the div don't ovelap the table????



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: April 19, 2007 at 13:04:14 Pacific
Reply:

I made a test page and can't reproduce your results. When I dynamically change the div to display: block; the table changes size to fit. Can you provide a complete working example that causes the error?

Michael J


0

Response Number 2
Name: davser
Date: April 20, 2007 at 04:26:05 Pacific
Reply:

I'm sorry, I forget to tell to use firefox...I think you have used Explorer, right???


0

Response Number 3
Name: Michael J (by mjdamato)
Date: April 20, 2007 at 09:44:53 Pacific
Reply:

I used IE, FF, and Opera. Can you provide a link to a page with the problem or post more complete example of code that displays the problem?

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Div operlaps table problem

Table Problems www.computing.net/answers/webdevel/table-problems/3777.html

cascading style sheets www.computing.net/answers/webdevel/cascading-style-sheets/4.html

Objects moving on web page www.computing.net/answers/webdevel/objects-moving-on-web-page/994.html