Search⌘ K

Custom-Property Controlled Column Layout

Explore how to build a responsive column layout controlled by CSS custom properties. Learn to adjust the number of columns and gutter space dynamically while maintaining equal height columns, using only CSS changes.

Problem description

A .container should display its children in a number of columns defined by CSS variables --cols ...