Border Spacing
Controls the distance between table borders.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
bs-0 | border-spacing: 0rem; |
bs-1 | border-spacing: 0.25rem; |
bs-2 | border-spacing: 0.5rem; |
bs-3 | border-spacing: 0.75rem; |
bs-4 | border-spacing: 1rem; |
bs-5 | border-spacing: 1.25rem; |
bs-6 | border-spacing: 1.5rem; |
bs-7 | border-spacing: 1.75rem; |
bs-8 | border-spacing: 2rem; |
The space between the borders of adjacent table cells will be increased.
| A | B |
| C | D |
<table class="b-1 b-d bc-slate bs-4 w-full"> <tbody> <tr> <td class="b-1 b-d bc-slate p-4 ta-c tc-slate">A</td> <td class="b-1 b-d bc-slate p-4 ta-c tc-slate">B</td> </tr> <tr> <td class="b-1 b-d bc-slate p-4 ta-c tc-slate">C</td> <td class="b-1 b-d bc-slate p-4 ta-c tc-slate">D</td> </tr> </tbody></table>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:bs-*, md:bs-*, lg:bs-*, and xxl:bs-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:bs-* utility to override elements and change their values when hovering over them.