Browse documentation

Reference / Layout

Columns

Set a column count or a preferred column width to flow one continuous piece of text into multiple columns.

Working example

Text reads down one column before continuing at the top of the next. Choose a preferred width when the number of columns should follow the space available.

HTML
<div class="columns-2 gap-6 text-sm">
  <p>We collect paper samples from the city’s oldest presses.</p>
  <p>Each sheet is catalogued by weight, grain and finish.</p>
</div>

Class reference

ClassCSS declarations
columns-2columns: 2;
columns-3columns: 3;
columns-[16rem]columns: 16rem;
columns-autocolumns: auto;
View full generated CSS
Compiled CSS
.columns-2 {
  columns: 2;
}
.columns-3 {
  columns: 3;
}
.columns-\[16rem\] {
  columns: 16rem;
}
.columns-auto {
  columns: auto;
}