Browse documentation
Reference / Tables
Border spacing
Space individual table cells with a CSS border-spacing declaration written as a Mono arbitrary property.
Working example
| Fold | 12 mm |
|---|---|
| Trim | 3 mm |
For two values, the first sets horizontal spacing and the second sets vertical spacing. Border spacing takes effect with separate borders.
<table class="border-separate [border-spacing:.75rem_.25rem] text-left">
<tbody>
<tr><th scope="row" class="border p-2">Fold</th><td class="border p-2">12 mm</td></tr>
<tr><th scope="row" class="border p-2">Trim</th><td class="border p-2">3 mm</td></tr>
</tbody>
</table>Class reference
| Class | CSS declarations |
|---|---|
border-separate | border-collapse: separate; |
[border-spacing:0] | border-spacing: 0; |
[border-spacing:.5rem] | border-spacing: .5rem; |
[border-spacing:.75rem_.25rem] | border-spacing: .75rem .25rem; |
View full generated CSS
.border-separate {
border-collapse: separate;
}
.\[border-spacing\:\.5rem\] {
border-spacing: .5rem;
}
.\[border-spacing\:\.75rem_\.25rem\] {
border-spacing: .75rem .25rem;
}
.\[border-spacing\:0\] {
border-spacing: 0;
}