Grid Column Span

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

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

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

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:gc-*
Small640px
md:gc-*
Medium768px
lg:gc-*
Large1024px
xxl:gc-*
Extra Large1536px

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:gc-*