Skip to content

Grid Row

Controls the size and position of elements across rows.

Grid Row Span

Controls the row span of a grid item.

Utility Properties
Error: 429

This example sets the grid row to span 2 / span 2. The item will span across 2 rows, starting from its current position and occupying the next 2 rows in the grid.

A
B
C
D
E
<div class="d-g g-4 gtc-3 h-75 ta-c tc-white" id="area">
<div class="ai-c bg-indigo gr-s-2 d-f jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo-8 d-f jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo-8 d-f jc-c p-4 rad-1">C</div>
<div class="ai-c bg-indigo-8 d-f jc-c p-4 rad-1">D</div>
<div class="ai-c bg-indigo-8 d-f jc-c p-4 rad-1">E</div>
</div>

Grid Row End

Controls where the grid item ends on the grid rows.

Utility Properties
Error: 429

This example sets the grid row end to 3. The item will end at the first row line, effectively spanning from its starting position to the second row line.

A
B
C
<div class="p-r">
<div class="d-g g-4 gaf-c gtr-3 ta-c tc-white" id="area">
<div class="ai-c bg-indigo d-f d-g gr-s-2 gre-3 jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo-8 d-f d-g gre-4 grs-1 jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo-8 d-f d-g gre-4 grs-1 jc-c p-4 rad-1">C</div>
</div>
</div>

Grid Row Start

Controls where the grid item begins on the grid rows.

Utility Properties
Error: 429

This example sets the grid row start to 3. The item will begin at the first row line, positioning it to start in the third row of the grid.

A
B
C
<div class="p-r">
<div class="d-g g-4 gaf-c gtr-3 ta-c tc-white" id="area">
<div class="ai-c bg-indigo d-f d-g gr-s-2 grs-2 jc-c p-4 rad-1">A</div>
<div class="ai-c bg-indigo-8 d-f d-g gre-4 grs-1 jc-c p-4 rad-1">B</div>
<div class="ai-c bg-indigo-8 d-f d-g gre-4 grs-1 jc-c p-4 rad-1">C</div>
</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="gr-1 md:gr-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="gr-1 h:gr-2 ..."></div>