When you say on resize I presume that you mean when the window is readjusted and then refreshed, not updating on the fly...
CSS:
.TableClass
{
font-family: Verdana, Arial, Tahoma, Sans-Serif;
font-size: 10px;
border: solid 1px #000000;
position: relative;
margin: 0px;
padding: 0px;
}
.TableHeader
{
font-weight: bold;
font-size: 12px;
background-color: transparent;
color: #000000;
border: solid 0px #000000;
float: left;
text-align: center;
position: static;
margin: 0px;
padding: 0px;
width: 100%;
}
.TableRow
{
font-weight: normal;
font-size: 12px;
background-color: transparent;
color: #000000;
border: solid 0px #000000;
position: static;
margin: 0px;
padding: 0px;
width: 100%;
text-align: left;
}
.TableCell
{
border: solid 0px #000000;
float:left;
margin: 0px;
padding: 0px;
position: static;
}
.ClearBoth
{
clear: both;
height: 0%;
font-size: 0%;
line-height: 0%;
}
HTML:
<div class="TableClass" style="border:0px solid #000000;">
<div class="TableRow">
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
</div>
<div class="ClearBoth"></div>
<div class="TableRow">
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
</div>
<div class="ClearBoth"></div>
<div class="TableRow">
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
</div>
<div class="ClearBoth"></div>
<div class="TableRow">
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
<div class="TableCell" style="width:25%;">
</div>
</div>
</div>
or something like that...
[edit: missed off closing DIV]
[edit2: Just as a point of interest I tend to use PHP to set the width of the table (eg by echoing out the value) so that I can change the width at just the one place and not everywhere throughout the code. You could also use Javascript if you wanted as well]