Border Spacing
Controls the distance between table borders.
Utility | Properties | Failed to load data. Please try again later. |
---|
This example sets the border spacing to 1rem. The space between the borders of adjacent table cells will be increased.
A | B |
C | D |
<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>
Conditional styles
Learn how to override existing utilities based on the userโs screen size or other factors, such as hover states.
Media modifier
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-1 md:bs-2 ..."></div>
Hover modifier
Alternatively, you can apply :hover
by using h:bs-*
utility to override elements and change their values when hovering over them.
<div class="bs-1 h:bs-2 ..."></div>