Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since November 2016.
The column-width CSS property sets the ideal column width in a multi-column layout. The container will have as many columns as can fit without any of them having a width less than the column-width value. If the width of the container is narrower than the specified value, the single column's width will be smaller than the declared column width.
This property can help you create responsive designs that fit different screen sizes. Especially in the presence of the column-count property (which has precedence), you must specify all related length values to achieve an exact column width. In horizontal text these are width, column-width, column-gap, and column-rule-width.
The columns shorthand property can be used to set the column-width, column-count, and column-height property values in a single declaration.
The column-width property is specified as one of the values listed below.
Indicates the optimal column width. The actual column width may differ from the specified value: it may be wider when necessary to fill available space, and narrower when the available space is too small. The value must be strictly positive or the declaration is invalid. Percentage values are also invalid.
autoThe width of the column is determined by other CSS properties, such as column-count.
| auto |
| Block containers except table wrapper boxes |
| no |
| auto if specified as auto, otherwise for <length> the absolute value specified |
| by computed value type |
| CSS Multi-column Layout Module Level 2 # propdef-column-width |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 20, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.