Hello!
When I make a table like this, the cell’s width between cell1 and cell2 is not 10px.
Is it possible to make table so that cells’s width stays 10 pixels whitout define more width’s?
example:
<table border="1">
<tr>
<td colspan="3">
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
</tr>
<tr>
<td>
cell1</td>
<td width="10"></td>
<td>
cell2</td>
</tr>
</table>
It’s never going to work unless you set a width on the table itself. If your numbers are not adding up to a particular table width, IE will surely ignore all your efforts. Somebody please prove me wrong!
<table border="1">
<tr>
<td colspan="3">
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
</tr>
<tr>
<td width="50%">
cell1</td>
<td width="10"><TABLE width="10"></TABLE></td>
<td width="50%">
cell2</td>
</tr>
</table>
An empty <TABLE> is not valid HTML, and even in the arcane days before CSS, people had better ways of forcing a space between table columns, like a 10 pixel wide clear image.
Let me make this suggestion instead, though:
<table border="1">
<tr>
<td colspan="2">
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text</td>
</tr>
<tr>
<td width="50%" style="padding-right: 10px">
cell1</td>
<td width="50%">
cell2</td>
</tr>
</table>