Bredd och höjd på tabeller i HTML
Med attributen width och height
kan du ställa in bredd och höjd för en tabell. Låt oss till exempel
sätta bredden på vår tabell till 300
pixlar och höjden till 200:
<table border="1" width="300" height="200">
<tr>
<td>cell 1</td>
<td>cell 2</td>
<td>cell 3</td>
</tr>
<tr>
<td>cell 4</td>
<td>cell 5</td>
<td>cell 6</td>
</tr>
<tr>
<td>cell 7</td>
<td>cell 8</td>
<td>cell 9</td>
</tr>
</table>
:
Sätt bredden på din tabell till 400
pixlar och höjden till 300.