Border Spacing
Controls the distance between table borders.
| 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.
<table class="b-1 bc-indigo bs-4 w-full"> <tr> <td class="b-1 bc-indigo p-4 ta-c tc-indigo">A</td> <td class="b-1 bc-indigo p-4 ta-c tc-indigo">B</td> </tr> <tr> <td class="b-1 bc-indigo p-4 ta-c tc-indigo">C</td> <td class="b-1 bc-indigo p-4 ta-c tc-indigo">D</td> </tr></table>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:bs-*, md:bs-*, lg:bs-*, and xxl:bs-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:bs-* utility to override elements and change their values when hovering over them.