Control how rows are aligned when you have multiple lines with flex-wrap. Only works with wrapped content!
Rows stretch to fill the container height
Rows packed to the start of the container
Rows packed to the end of the container
Rows centered in the container
Equal space between rows
Equal space around each row
Add display: flex
, flex-wrap: wrap
, and different align-content
values to see how rows are aligned!
This is crucial to understand! They control different things:
Controls items WITHIN each row
👆 Notice: Items in each row align to each other independently
Controls ALL ROWS as a group
👆 Notice: All 3 rows move together as one block
align-content only works when you have multiple lines! If all items fit on one line, align-content has no effect.