Border Collapse
Controls the collapsing or separation of table borders.
| 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.
<table class="b-1 bc-indigo bc-s ta-c tc-indigo w-full"> <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></table>Collapse
The borders of the table will be merged together.
<table class="b-1 bc-indigo bc-c ta-c tc-indigo w-full"> <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></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.