Caption Side
Controls the caption element orientation in a table.
Class | Properties |
---|---|
cs-b | caption-side: bottom; |
cs-t | caption-side: top; |
Bottom
This example sets the caption side to bottom. The caption will be displayed below the table.
<table class="b-1 bc-c bc-l-silver-3 w-full"> <caption class="cs-b fw-400 p-2"> Bottom Caption </caption> <tbody> <tr> <td class="b-1 bc-l-silver-3 p-3">A</td> <td class="b-1 bc-l-silver-3 p-3">B</td> <td class="b-1 bc-l-silver-3 p-3">C</td> </tr> </tbody></table>
Top
This example sets the caption side to top. The caption will be displayed above the table.
<table class="b-1 bc-c bc-l-silver-3 w-full"> <caption class="cs-t fw-400 p-2"> Top Caption </caption> <tbody> <tr> <td class="b-1 bc-l-silver-3 p-3">A</td> <td class="b-1 bc-l-silver-3 p-3">B</td> <td class="b-1 bc-l-silver-3 p-3">C</td> </tr> </tbody></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:cs-*
,md:cs-*
, lg:cs-*
, and xxl:cs-*
allows targeting specific utilities in
different viewports.
<div class="cs-b md:cs-t ..."></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:cs-*
utility to override elements
and change their values when hovering over them.
<div class="cs-b h:cs-t ..."></div>