Click to See Complete Forum and Search --> : very large div


jaybe
04-06-2007, 03:32 AM
Hi,

The following code has issues in IE7:

<table><tr><td>

<div style="width:50%; border:2px solid red;">
<div style="padding-right:2%;padding-top:2%;border:2px solid black;">
x
</div>
</div>

</td></tr></table>

The div boxes are extremely large: many, many "empty" pages. Am I missing something or it is a bug? Incidentally, it works as expected in Firefox...

thanks,
J.

Suhas Dhoke
04-06-2007, 04:17 AM
Don't use the percent values for the width style.
Use the px (pixel) values.
And one more thing, if the width of the table is fix, then mention it.

ray326
04-06-2007, 01:29 PM
Action #1 should be dumping the table entirely. If there's a need for a wrapper then wrap with a div.