--- name: layout-columns description: Multi-column layout with columns utility for masonry-like or newspaper layouts --- # Columns Utilities for CSS multi-column layout. Content flows into multiple columns within a single element. ## Usage ### By number of columns ```html
``` ### By column width Use container scale for ideal column width; column count adjusts automatically: ```html
...
...
...
``` ### Column gap Use `gap-*` utilities for space between columns: ```html
...
``` ### Responsive ```html
...
``` ### Custom value ```html
...
...
``` ### Column / page breaks Use with multi-column or print layouts: ```html

Content...

Force break after this

Next column...

``` - `break-after-column` / `break-before-column` - column break - `break-after-page` / `break-before-page` - page break (print) - `break-after-avoid` / `break-inside-avoid` - avoid breaking ## Key Points - `columns-` - fixed number of columns (e.g. `columns-3`) - `columns-3xs` through `columns-7xl` - column width from container scale - `columns-auto` - auto columns - `gap-*` controls column gap (same as flex/grid gap) - Use for magazine-style layouts, image galleries, long text