Skip to content

columns

Utilities for laying out children into multi-column masonry flows with fixed counts or ideal column widths.

ISS preview
Iced + ISS preview demonstrating columns
ISS preview for columns
use iss::{columns_tw, tw};
let masonry = columns_tw(cards, tw!("columns-3 gap-4"));
Tailwind Class CSS Property / Effect iss::typed Builder
columns-1 .. columns-12 columns: 1 .. 12; .columns(3)
columns-auto columns: auto; .columns_auto()
columns-3xs .. columns-7xl columns: 16rem .. 80rem; .columns_xs()
columns-[140px] columns: 140px; .columns_width(140)
  • Use columns_tw(children, style) to flow children into balanced multi-column tracks.
  • Use gap-* for horizontal column gutters and child mb-* margins for vertical spacing inside each column.

break-after · break-before · break-inside · gap