Example 1:
HTML Code:
<table border="1" width="300" id="table1">
<tr>
<td width="150">content</td>
<td width="150"> </td>
</tr>
<tr>
<td width="150">very long content in two lines</td>
<td width="150"> </td>
</tr>
</table>
The table has a widht of 300 Pixel and each cell 150 Pixel
Example 2:
HTML Code:
<table border="1" width="300" id="table1">
<tr>
<td width="50%">content</td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%">very long content in two lines</td>
<td width="50%"> </td>
</tr>
</table>
The table has a width of 300 px and each cell a width of 50% of the width of the table.