PositioningColumns

Columns

Controls how many columns are in an element.

Widely available

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

Chrome
Edge
Firefox
Safari
ClassStyle
c-1columns: 1;
c-2columns: 2;
c-3columns: 3;
c-4columns: 4;
c-5columns: 5;
c-6columns: 6;
c-7columns: 7;
c-8columns: 8;
c-9columns: 9;
c-10columns: 10;
c-11columns: 11;
c-12columns: 12;
c-13columns: 13;
c-14columns: 14;
c-15columns: 15;
c-16columns: 16;

Divides the content into 4 equal columns.

A

B

C

D

<div class="c-4">
<p class="bg-indigo d-f ai-c jc-c tc-white d-16">A</p>
<p class="bg-indigo d-f ai-c jc-c tc-white d-16">B</p>
<p class="bg-indigo d-f ai-c jc-c tc-white d-16">C</p>
<p class="bg-indigo d-f ai-c jc-c tc-white d-16">D</p>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:c-*, md:c-*, lg:c-*, and xxl:c-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:c-* utility to override elements and change their values when hovering over them.