tags:

views:

207

answers:

2
<body>
<table width="100%">
<tr>
<td><div>content1 goes here</div></td>
<td><div>content2 goes here</div></td>
<td><div>content3 goes here</div></td>
</tr>
</table>
</body>

The content(1,2,3) can include other html tags. There is no setting on the width of td,then how on earth is it autoresized? I've now somehow triggered an unexpected autoresize.

+1  A: 

The autoresize is part of the way the browsers handle tables. It doesn't matter if you add a width or not. This will give you a deeper explanation: http://www.w3.org/TR/CSS2/tables.html#model

Santi
A: 

If you don't want the td to resize then put a width on the div tag inside the td and make its overflow to hidden or ellipsis and show text innertext as a tool tip to the div.

rahul