Open this example in the interactive library
Source code
<style>
.demo {
border-collapse: separate;
border-spacing: 0.5rem;
}
.demo td {
border: 1px solid #64748b;
padding: 0.5rem;
}
</style>
<table class="demo">
<caption>
Weekly totals
</caption>
<tbody>
<tr>
<td>Monday</td>
<td>14</td>
</tr>
<tr>
<td>Tuesday</td>
<td>7</td>
</tr>
</tbody>
</table>