Back to CSS Universe

intermediate

Multi-Column Layout

Newspaper-like flows with columns, spanning, and balancing strategies.

columnsflow

Learning checklist

  • column-count vs column-width
  • spanning headers
  • column gaps and rules

Definition

Newspaper-like flows with columns, spanning, and balancing strategies.

Syntax

column-count vs column-width

Example

Use the visualizer below to apply these properties and see the result live.

Deep dive

Why this matters

Principles, mental models, and debugging clues tailored to the topic.

Visual intuition

Each property is paired with motion or color feedback so you build muscle memory, not just recall syntax.

Copy-ready CSS

Controls emit exact CSS you can copy. Use it as a starter token or paste into DevTools for instant validation.

Performance notes

Learn where reflow, repaint, or compositing occurs so you avoid jank and choose GPU-friendly paths.

Accessibility first

Focus-visible, reduced-motion, and contrast tips are woven into every lab to keep experiences inclusive.

Practice

Try recreating a UI card using this topic. Toggle between dark and light modes to validate token contrast and responsiveness.

Tip: use DevTools overlays (grid/flex) plus the copy CSS button.

Interactive Lab

Multi-Column Layout

Balance text across multiple columns; tweak column count and gap.

Columns: 3 ยท Gap: 16px

Try these

  • Reduce column count to 1 to see single-flow text.
  • Increase gap to see spacing impact on readability.
  • Try 3-4 columns and resize to observe balancing.
Multi-column layout lets text flow into parallel columns. Adjust column-count and column-gap to see balancing. Multi-column layout lets text flow into parallel columns. Adjust column-count and column-gap to see balancing. Multi-column layout lets text flow into parallel columns. Adjust column-count and column-gap to see balancing. Multi-column layout lets text flow into parallel columns. Adjust column-count and column-gap to see balancing.
CSS
.multi-col {
  column-count: 3;
  column-gap: 16px;
}
HTML
<div class="multi-col">
  <p>Multi-column layout lets text flow into parallel columns...</p>
</div>

Related topics

Keep exploring adjacent concepts.

foundation

Display Modes

Inline, block, inline-block, table, and flow-root behaviors and their layout effects.

View page