StealThis .dev

News — Multi-column Flow Grid

A newsprint-style article layout where real editorial copy flows continuously across one to four CSS columns. Live controls reflow the text instantly — set the column count, drag the gap wider or tighter, toggle hairline column rules, and switch between justified-and-hyphenated or ragged-right. Built with a spanning headline, drop-capped lead, captioned duotone press photos rendered purely in CSS, an inline pull quote, and a responsive collapse to a single column on narrow screens.

Otwórz w Lab
html css vanilla-js
Targety: JS HTML

Kod

Multi-column Flow Grid

A single block of article prose pours through a CSS multi-column container while the masthead, headline, standfirst, and lede figure span the full measure above it. The lead paragraph carries a serif drop cap in accent red, the body is justified with automatic hyphenation, and thin hairline rules sit between columns the way they would on a real newspaper page. A pull quote and a captioned inline photo break the flow without disturbing it, each set to avoid awkward column splits.

The sticky control bar drives the layout live through CSS custom properties. A segmented control (also keyboard-navigable with the arrow keys) sets the column count from one to four; a range slider widens or tightens the gap and reports the value in rem; and two toggles flip the column rules on or off and switch the body between justified-and-hyphenated and ragged-right. Every change reflows the same copy instantly, and a small toast confirms each adjustment.

All imagery is simulated with layered CSS gradients inside fixed aspect-ratio boxes — a duotone-ink cosmic field and a control-room portrait — so the demo is fully self-contained with no network requests. Below 900px the grid caps at two columns, and under 720px it collapses cleanly to a single readable column with the rules removed.

Illustrative UI only — masthead, headlines, bylines, and articles are fictional; not a real news publication.