Column Gap
Control the spacing between columns in a grid layout.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Define the spacing between grid columns.
A
B
C
<div class="cg-10 d-g gtc-3 c-white"> <div class="ai-c bg-indigo d-f jc-c d-16">A</div> <div class="ai-c bg-indigo d-f jc-c d-16">B</div> <div class="ai-c bg-indigo d-f jc-c d-16">C</div></div>Responsive Design
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:cg-[value]Small≥640px
md:cg-[value]Medium≥768px
lg:cg-[value]Large≥1024px
xxl:cg-[value]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:cg-[value]