Border Collapse
Controls the collapsing or separation of table borders.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
bc-c | border-collapse: collapse; |
bc-s | border-collapse: separate; |
Separate
Initial value
The borders of the table cells will remain distinct, allowing for spacing between them.
| A | B |
| C | D |
<table class="b-1 bc-indigo bc-s ta-c tc-indigo w-full"> <tbody> <tr> <td class="b-1 bc-indigo p-2">A</td> <td class="b-1 bc-indigo p-2">B</td> </tr> <tr> <td class="b-1 bc-indigo p-2">C</td> <td class="b-1 bc-indigo p-2">D</td> </tr> </tbody></table>Collapse
The borders of the table will be merged together.
| A | B |
| C | D |
<table class="b-1 bc-indigo bc-c ta-c tc-indigo w-full"> <tbody> <tr> <td class="b-1 bc-indigo p-2">A</td> <td class="b-1 bc-indigo p-2">B</td> </tr> <tr> <td class="b-1 bc-indigo p-2">C</td> <td class="b-1 bc-indigo p-2">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.