I'm trying to make an ajax columns-resizable table, the interface works fine, but when I resize the columnns, the browser enlarges the table at max 100%, resizing eventually other columns. I've tried with both this two solutions but no one works well:
1.
min-width: 100%;
table-layout: fixed;
width: 100%;
with this solution, I need to resize any single column before going (if necessary) over 100%; if I enlarge only one column, for example, all the others columns are restricted, they does not maintain the original width (as I would)
2.
table-layout: fixed;
Any ideas?
Edit: This is the relevant html code:
<table class="resizable" id="TabellaDati" ><thead> <tr>
<th id="MDT_ThID"><span>ID</span></th>
<th id="MDT_ThText" style="width: 146px;">Text</th>
<th id="MDT_ThTitle" style="width: 148px;">Title</th>
<th id="MDT_ThCssClass" style="width: 83px;">CssClass</th>
<th id="MDT_ThUrl" style="width: 92px;">Url</th>
<th id="MDT_ThOrdine">Ordine</th>
</tr>
</thead>
<tbody> <tr>
<td headers="MDT_ThID">MenuAlbo</td>
<td headers="MDT_ThText">Albo Pretorio</td>
<td headers="MDT_ThTitle">Albo Pretorio</td>
<td headers="MDT_ThCssClass"></td>
<td headers="MDT_ThUrl">/AlboPretorio</td>
<td headers="MDT_ThOrdine">2</td>
</tr>
</tbody></table>
And the Css:
#TabellaDati {
min-width: 100%;
table-layout: fixed;
width: 100%;
}
table {
border-collapse: collapse;
}