Flexbox Playground

Grandma Marni’s stall at the morning market: the table is a real flex container and her goods flex items, so set direction, justify and align, guess the…

Why it matters

Flexbox is the quickest way to build a one-dimensional layout (one row or one column). Most layout needs are met with display: flex and two or three properties. If you can master only one layout system, master Flexbox.

The key idea

When the direction changes, the axes swap roles

Common mistakes

Try it in this playground