Row Gap
Controls the gap between rows in a grid layout.
Utility | Properties |
---|---|
Error: 429 |
This example sets the row gap to 0.75rem. The element will have a uniform spacing of 0.75rem between its rows.
A
B
C
<div class="rg-10 d-g gtr-3 tc-white" id="area"> <div class="bg-indigo p-4 rad-1 ta-c">A</div> <div class="bg-indigo p-4 rad-1 ta-c">B</div> <div class="bg-indigo p-4 rad-1 ta-c">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="rg-1 md:rg-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="rg-1 h:rg-2 ..."></div>