📰 CSS Columns

CN EN

👁️ Presets

⚙️ Parameters

column-count3
column-gap20px
column-rule-width1px

👁️ Live Preview

CSS Multi-column Layout is a powerful layout method that automatically distributes content into multiple columns, similar to newspaper or magazine layouts. It works great for long articles, news lists, and other text-heavy content.

Use the column-count property to specify the number of columns, column-gap to control spacing between columns, and column-rule to add divider lines. The browser automatically calculates each column's width and ensures even content distribution.

The advantages of multi-column layout include simple implementation, no JavaScript needed, and responsive-friendly behavior. However, it doesn't support placing images between columns, and content flow is fixed from top to bottom, left to right.

Common use cases include news websites, magazine-style pages, product manuals, and other scenarios that require compact text display. Combined with column-break properties, you can also control break behavior when content splits across columns.

💻 CSS Code