Border Collapse
Controls the collapsing or separation of table borders.
Class | Properties |
---|---|
bc-c | border-collapse: collapse; |
bc-s | border-collapse: separate; |
Collapse
This example sets the border collapse to collapse. The borders of the table will be merged together.
A | B |
C | D |
<table class="b-1 b-s bc-c bc-l-silver-1 w-full"> <tr> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">A</td> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">B</td> </tr> <tr> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">C</td> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">D</td> </tr></table>
Separate
This example sets the border collapse to separate. The borders of the table cells will remain distinct, allowing for spacing between them.
A | B |
C | D |
<table class="b-1 b-s bc-l-silver-1 bc- ta-cs w-full"> <tr> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">A</td> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">B</td> </tr> <tr> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">C</td> <td class="b-1 b-s bc-l-silver-1 p-2 ta-c">D</td> </tr></table>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Responsive breakpoints
You can combine responsive breakpoints like sm:bs-*
,md:bs-*
, lg:bs-*
, and xxl:bs-*
allows targeting specific utilities in
different viewports.
<div class="bs-s md:bc-c ..."></div>
Utilizing utilities conditionally
Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.
Hover states
Alternatively, you can apply :hover
by using h:bs-*
utility to override elements
and change their values when hovering over them.
<div class="bs-s h:bc-c ..."></div>