Columns

Set the number of columns within an element.

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="c-4">
<p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">A</p>
<p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">B</p>
<p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">C</p>
<p class="d-f ai-c jc-c w-16 h-16 bg-indigo c-white">D</p>
</div>

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:c-*
Small640px
md:c-*
Medium768px
lg:c-*
Large1024px
xxl:c-*
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:c-*

Negative Values

Use negative variants to apply negative column values.

Use the -- syntax to apply negative numeric values.

Syntax:c--*