WeCodeAcademy

Flexbox Layout

Flexbox lays items out in a row or column. Set display: flex on the container.

Examplehtml
Open in editor »

Try justify-content: center and flex-direction: column.

Quick check

Which declaration turns an element into a flex container?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.