Skip to content

Grid Column

Controls the size and position of elements across columns.

Grid Column Span

Allows a grid item to span a specific number of columns.

Utility Properties
Error: 429

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

A
B
C
D
<div class="d-g g-4 gtc-3 ta-c tc-white" id="area">
<div class="bg-indigo gc-s-2 p-4 rad-1">A</div>
<div class="bg-indigo-8 p-4 rad-1">B</div>
<div class="bg-indigo-8 p-4 rad-1">C</div>
<div class="bg-indigo gc-s-2 p-4 rad-1">D</div>
</div>

Grid Column End

Controls where a grid item should end within the column grid line.

Utility Properties
Error: 429

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

A
B
C
<div class="d-g g-4 gtc-4 ta-c tc-white" id="area">
<div class="bg-indigo gce-3 p-4 rad-1">A</div>
<div class="bg-indigo p-4 rad-1">B</div>
<div class="bg-indigo p-4 rad-1">C</div>
</div>

Grid Column Start

Controls the starting grid line for a grid item within the column layout.

Utility Properties
Error: 429

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

A
B
C
<div class="d-g g-4 gcs-3 gtc-4 ta-c tc-white" id="area">
<div class="bg-indigo p-4 rad-1">A</div>
<div class="bg-indigo p-4 rad-1">B</div>
<div class="bg-indigo 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="gc-1 md:gc-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="gc-1 h:gc-2 ..."></div>