Flexbox
Flexbox
A way to line boxes up side by side in one row (or one column).
💡 It's like lining books up in a single row on a shelf.
👆 Try it yourself
It really works — click around and see.
A
B
C
CSSdisplay: flex; flex-direction: row; justify-content: space-between;
🤖 Say this to your AI
Build the header with Flexbox: put the logo at the far left and the menu at the far right (space-between), and center them vertically.
The key word is ‘Flexbox’. Including it helps AI understand you much more precisely.
📌 Good to know
An easy way to remember: one row is Flexbox, a checkerboard is Grid.
When to use it
- Putting menu items side by side
- Placing the logo at the far left and buttons at the far right
Also called: flex, side by side, in a row, horizontal layout, space-between, line up items, opposite ends