Advanced CSS Grid

Switch examples below. Each panel shows live grid behavior and the CSS driving it.

auto-fit vs auto-fill + minmax()

Both use repeat(auto-*, minmax(100px, 1fr)). Drag the width slider — auto-fill keeps empty tracks (ghost columns), auto-fit collapses them so items stretch.

Item 1
Item 2
Item 3

Tracks created: · Items: 3 · Mode: auto-fit

Live CSS