Column Gap
Controls the spacing between columns in a grid layout.
Utility | Properties |
---|---|
Error: 429 |
This example sets the column gap to 2.5rem. The element will have a uniform spacing of 2.5rem between its columns.
A
B
C
<div class="cg-10 d-g gtc-3 tc-white" id="area"> <div class="ai-c bg-indigo d-f jc-c p-4 rad-1">A</div> <div class="ai-c bg-indigo d-f jc-c p-4 rad-1">B</div> <div class="ai-c bg-indigo d-f jc-c p-4 rad-1">C</div></div>
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:-*
,md:-*
, lg:-*
, and xxl:-*
allows targeting specific utilities in different viewports.
<div class="cg-1 md:cg-2 ..."></div>
Hover modifier
Alternatively, you can apply :hover
by using h:-*
utility to override elements and change their values when hovering over them.
<div class="cg-1 h:cg-2 ..."></div>