Keep the collected column index across table-column-group siblings, so columns in later colgroups are not recorded as column 0.
27 lines
402 B
HTML
27 lines
402 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
col.right {
|
|
border-left: 8px solid black;
|
|
}
|
|
|
|
td {
|
|
border: 1px solid black;
|
|
padding: 10px 20px;
|
|
}
|
|
</style>
|
|
<table>
|
|
<colgroup>
|
|
<col>
|
|
</colgroup>
|
|
<colgroup>
|
|
<col class="right">
|
|
</colgroup>
|
|
<tr>
|
|
<td>A</td>
|
|
<td>B</td>
|
|
</tr>
|
|
</table>
|