Columns
Set the number of columns within an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
A
B
C
D
<div class="c-4"> <p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">A</p> <p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">B</p> <p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">C</p> <p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">D</p></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:c-*Small≥640px
md:c-*Medium≥768px
lg:c-*Large≥1024px
xxl:c-*Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:c-*Negative Values
Use negative variants to apply negative column values.
Use the -- syntax to apply negative numeric values.
Syntax:
c--*