Good. Here, as you do this, create a function that you can call onResize in the body tag. Create a table with a title bar, which will depend on the three columns that will be unused, make it nested (important). Get the size of the full width viewport and set the first width td for it, it was actually easier than I thought:
<html>
<head>
<script src="jquery.min.js"></script>
<script type="text/javascript">
function doColWidths(){
$("td:first").css("width",$(window).width());
}
</script>
</head>
<body onresize="doColWidths()">
<table>
<tr>
<td colspan="3" nowrap="nowrap"></td><td></td>
</tr>
<tr>
<td id="col1">Col1</td>
<td id="col2">Col2</td>
<td id="col3">Col3</td>
<td id="col4">Col4</td>
</tr>
</table>
</body>
</html>
I hope this helps someone in the future.
source
share