Hi,
i have an HTML table 2x2.
In that table, I want the first row is not divided in two parts but only has one cell that occupies the full width of the table.
-------
| |
-------
| | |
-------
How can i do that?
Regards
Javi
Hi,
i have an HTML table 2x2.
In that table, I want the first row is not divided in two parts but only has one cell that occupies the full width of the table.
-------
| |
-------
| | |
-------
How can i do that?
Regards
Javi
<table>
<tr>
<td colspan = 2></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
Use the colspan table cell attribute like this.
<table>
<tr>
<th colspan="2"></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
Use colspan
along with <th>
for the header row
<table>
<tr>
<th colspan="2"></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>