ice78991
Programmer
- Nov 20, 2006
- 216
I am doing an experiment. In the following table I have set the <td>s so that they do not add up to the total screen width. By adjusting the px values (sep below say 10px) the display results are sometimes unpredictable. Is there a general rule used by browsers for handling this situation?
<table style="width:100%">
<tr>
<td style="width:50px">Hello1</td>
<td style="width:300px">Hello2</td>
</tr>
</table>
<table style="width:100%">
<tr>
<td style="width:50px">Hello1</td>
<td style="width:300px">Hello2</td>
</tr>
</table>