Browse documentation

Reference / Tables

Border spacing

Space individual table cells with a CSS border-spacing declaration written as a Mono arbitrary property.

Working example

For two values, the first sets horizontal spacing and the second sets vertical spacing. Border spacing takes effect with separate borders.

HTML
<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

ClassCSS declarations
border-separateborder-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
Compiled 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;
}