Flexbox
Lesson 7 of 20 · Web.Micro
Line items up in a row or a column, centre them, spread them: flexbox does it in two lines.
Put display: flex on a container and its children sit side by side along the main axis (a row). flex-direction: column turns the axis vertical.
Check yourself
Where do you put display: flex?
Do it in the browser: a real HTML, CSS and JavaScript tool, a short mission and instant feedback. No install.
Start this lesson — free