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
We collect paper samples from the city’s oldest presses.
Each sheet is catalogued by weight, grain and finish.
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.
<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
| Class | CSS declarations |
|---|---|
columns-2 | columns: 2; |
columns-3 | columns: 3; |
columns-[16rem] | columns: 16rem; |
columns-auto | columns: auto; |
View full generated CSS
.columns-2 {
columns: 2;
}
.columns-3 {
columns: 3;
}
.columns-\[16rem\] {
columns: 16rem;
}
.columns-auto {
columns: auto;
}