Welkom bij voorbeelden
voorbeeld colgroup width attribuut
<table border="1">
<colgroup
align="center" width="120"
style="background: #ffff99"
>
</colgroup>
<colgroup
align="center" width="45%"
style="background: #ff00cc"
>
</colgroup>
<colgroup
align="center" width="200"
style="background: #00ffcc"
>
</colgroup>
<colgroup
align="center" width="15%"
style="background: #fff000"
>
</colgroup>
<tr>
<td height="60">
width="120"
</td> <td>
width="45%"<
/td> <td>
width="200"
</td> <td>
width="15%"
</td>
</tr>
<tr>
<td height="60">
</td> <td>
<
/td> <td>
</td> <td>
</td>
</tr>
<tr>
<td height="60">
</td> <td>
<
/td> <td>
</td> <td>
</td>
</tr>
</table>
width="120"
width="45%"
width="200"
width="15%"
het attribuut
align
werkt enkel correct in IE7, IE8 en Opera