Beispiel:CSS2 Breitenangaben fuer Tabellen.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
<title>Breitenangaben für Tabellen</title>
<style>
td, th {border: 1px solid;}
#spaltengruppe {width: 120px;}
#spalte4 {width: 200px;}
</style>
</head>
<body>
<h1>Breitenangaben für Tabellen</h1>
<main>
<table>
<caption>Breitenangaben</caption>
<colgroup id="spaltengruppe">
<col>
<col>
<col>
</colgroup>
<colgroup>
<col id="spalte4">
</colgroup>
<thead>
<tr>
<th>Ü 1</th>
<th>Ü 2</th>
<th>Ü 3</th>
<th>Ü 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>Zelle 1</td>
<td>Zelle 2</td>
<td>Zelle 3</td>
<td>Zelle 4</td>
</tr>
</tbody>
</table>
</main>
</body>
</html>