align-content: stretch;

Why align-content: stretch; doesn't work when align-items is set to any other value other than stretch?
4 Replies
Kevin Powell
Kevin Powell•3d ago
It still works. align-items is about how the individual items align within theirs rows, align-content is how the entire group of rows align within the parent.
Kevin Powell
Kevin Powell•3d ago
Easier to explain with an example 😄
Mustafa_Elghisha
Mustafa_ElghishaOP•3d ago
Got it!
StefanH
StefanH•2d ago
a personal kevin video!

Did you find this page helpful?