Layout with flexbox
By default, block elements stack on top of each other. display: flex on a container lines its children up in a row instead.
gap adds space between the children. justify-content decides where they sit along the row: center, space-between and more.
Example
<style>
nav { display: flex; gap: 16px; justify-content: space-between; }
</style>
<nav>
<a href="#">Home</a>
<a href="#">Shop</a>
<a href="#">Contact</a>
</nav>
Flexbox properties go on the parent (
.row), not on the children.Your tasks
0 of 3 done- Make .row a flex container
- Add space between the boxes with gap
- Center the boxes with justify-content
Tutor
The tutor guides you toward the answer instead of handing it over. It uses your own Claude usage.
Quick check
Where does display: flex go?
No problems found. Unclosed tags, missing semicolons and errors show up here in plain words.