The columns shorthand sets column width and column count together — the fastest way to start a multi-column layout.
01
Shorthand
Width + count.
02
Multi-Column
Flowing text layout.
03
auto auto
Default value.
04
One or Two
Flexible values.
05
Responsive
Adapts to space.
06
Readability
Magazine-style text.
Fundamentals
Definition and Usage
The columns CSS property is a shorthand that sets the number and width of columns for an element. It combines column-width and column-count into one declaration, making it easy to create multi-column layouts that enhance readability and aesthetics.
Use it on block containers with flowing text content — articles, news sections, or long-form prose. Pair with column-gap, column-rule, and column-span for spacing, dividers, and full-width headings.
💡
Beginner Tip
columns: 200px 3 means each column should be about 200px wide, with a maximum of 3 columns. On narrow screens you may get fewer columns automatically.
Foundation
📝 Syntax
The syntax for columns combines column width and column count:
Two fixed columns of flowing text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
How It Works
When you pass only an integer, the shorthand sets column-count and leaves width as auto.
🛠 Responsive & Styled Layouts
Use width-only shorthand or combine columns with gap and rule properties.
Example 3 — Column Width Only
Set only the target width — the browser decides how many columns fit.
Responsive auto-flow columns at 18rem width. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
How It Works
A single length value sets column-width only — ideal for responsive layouts without a fixed column count.
Example 4 — Magazine-Style Layout
Combine columns with gap, rule, and a spanning heading.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
How It Works
The shorthand handles width and count; companion properties add spacing, dividers, and full-width titles.
🧠 How columns Works
1
Content container
A block element holds paragraphs or other flow content.
Prerequisite
2
You set columns
Write width and count together, e.g. columns: 200px 3.
CSS rule
3
Browser creates columns
Text flows into the calculated number of columns at the target width.
Rendering
=
📰
Multi-column layout
Readable, magazine-style text columns with one concise declaration.
Compatibility
Modern Browser Support
The columns property is widely supported in modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.
✓ Baseline · Modern browsers
Columns shorthand everywhere
All major browsers support the columns shorthand as part of the Multi-column Layout module.
97%Modern browser support
Google Chrome50+ · Desktop & Mobile
Full support
Mozilla Firefox52+ · Desktop & Mobile
Full support
Apple Safari9+ · macOS & iOS
Full support
Microsoft Edge12+ · All versions
Full support
Opera37+ · Modern versions
Full support
columns property97% supported
Bottom line: Use the columns shorthand freely for multi-column text. Test combined width + count on different screen sizes.
Wrap Up
Conclusion
The columns property is a powerful and convenient way to create multi-column layouts in your web design. By specifying the width and number of columns, you can easily control the flow and appearance of your content.
Experiment with different configurations to find the best layout for your content and enhance the user experience on your website.
Use columns: 200px 3 for balanced readable layouts
Add column-gap and column-rule for polish
Use column-span: all on headings inside column containers
Prefer rem or ch units for accessible column widths
Test on narrow viewports where columns may collapse
❌ Don’t
Expect columns to handle complex grid layouts — use CSS Grid
Forget that gap, rule, and span are separate properties
Set too many columns on mobile without media queries
Confuse CSS columns with Flexbox or Grid columns
Use very narrow column widths that hurt readability
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about columns
Use these points when writing multi-column shorthand.
5
Core concepts
⚡01
Shorthand
Width + count.
Purpose
⚙02
auto auto
Default value.
Default
🖌03
Flexible
One or two values.
Syntax
📐04
200px 3
Common pattern.
Tip
🛸05
Add gap/rule
Separate props.
Related
❓ Frequently Asked Questions
columns is a shorthand for column-width and column-count. It lets you set the ideal column width, the number of columns, or both in a single declaration.
The initial value is equivalent to auto auto, which means the browser automatically determines column width and count based on content and available space.
You can write column-width then column-count, such as columns: 200px 3. You may also specify only one value — a length sets width, an integer sets count.
column-count sets only the number of columns. columns can set width, count, or both together as a shorthand.
No. columns only covers width and count. Use column-gap, column-rule, and column-span as separate properties for spacing, dividers, and full-width breakouts.