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
bs-0border-spacing: 0rem;bs-1border-spacing: 0.25rem;bs-2border-spacing: 0.5rem;bs-3border-spacing: 0.75rem;bs-4border-spacing: 1rem;bs-5border-spacing: 1.25rem;bs-6border-spacing: 1.5rem;bs-7border-spacing: 1.75rem;bs-8border-spacing: 2rem;bs-pxborder-spacing: 1px;The space between the borders of adjacent table cells will be increased.
| A | B |
| C | D |
<table class="bw-1 bs-d bc-slate bs-4 w-full"> <tbody> <tr> <td class="bw-1 bs-d bc-slate p-4 ta-c c-slate">A</td> <td class="bw-1 bs-d bc-slate p-4 ta-c c-slate">B</td> </tr> <tr> <td class="bw-1 bs-d bc-slate p-4 ta-c c-slate">C</td> <td class="bw-1 bs-d bc-slate p-4 ta-c c-slate">D</td> </tr> </tbody></table>Using utility variants
Override existing utilities based on the user's screen size or other factors, such as hover states.
Responsive design
Target different screen sizes by adding breakpoint prefixes. Styles apply from the specified breakpoint and up.
Target specific viewport sizes with breakpoint prefixes
sm:bs-[value]Small≥640px
md:bs-[value]Medium≥768px
lg:bs-[value]Large≥1024px
xxl:bs-[value]Extra Large≥1536px
Hover state variant
Apply styles conditionally when users hover over an element using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:bs-[value]