<!DOCTYPE html>
<html>
<head>
<title>Tabel</title>
<style>
.table-container {
width: 900px; /* breedte van tabel: zelf aanpassen (bijv. in % of px) */
margin: 0 auto;
}
table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
}
thead, tbody, tfoot, tr {
width: inherit;
}
th, td {
font: 400 14px/1.4 'sans-serif';
padding: 4px 6px;
box-sizing: border-box;
vertical-align: top;
}
/* voorbeeld: cellen in 3e kolom aanpassen */
table td:nth-child(3) {
width: 45%;
color: #f33;
}
/* voorbeeld: cellen in 2e rij aanpassen */
table tr:nth-child(2) td {
color: #699;
}
</style>
</head>
<body>
<div class="table-container">
<table>
<!-- www.w3schools.com/tags/tag_tbody.asp -->
</table>
</div>
</body>
</html>