Consider a table with a number of rows, each containing a short text (label)
on the left and an input control on the right. Some inputs are of type text
and others of type checkbox. I would like the cells with the checkboxes to
be as narrow as possible (square) but in this table the "width=10" bit seems
to get ignored:
<table border="1">
<tr>
<td>some text</td>
<td colspan="2"><in put type="text"></td>
</tr>
<tr>
<td colspan="2">mor e text</td>
<td width="10"><inp ut type="checkbox" ></td>
</tr>
</table>
What am I doing wrong?
The reason I am using a table is of course to line up the input elements.
More elegant solutions are also welcomed.
Thanks,
Ivo
on the left and an input control on the right. Some inputs are of type text
and others of type checkbox. I would like the cells with the checkboxes to
be as narrow as possible (square) but in this table the "width=10" bit seems
to get ignored:
<table border="1">
<tr>
<td>some text</td>
<td colspan="2"><in put type="text"></td>
</tr>
<tr>
<td colspan="2">mor e text</td>
<td width="10"><inp ut type="checkbox" ></td>
</tr>
</table>
What am I doing wrong?
The reason I am using a table is of course to line up the input elements.
More elegant solutions are also welcomed.
Thanks,
Ivo
Comment