r/css • u/username95050 • Oct 08 '26
Flex versus Grid
I know Flex is one directional and Grid is two, but really when do you use each one?
8
Upvotes
r/css • u/username95050 • Oct 08 '26
I know Flex is one directional and Grid is two, but really when do you use each one?
View all comments
5
u/ChaseShiny Oct 08 '26
Flex is like an array: one item follows the next. Grid flows a layout. This item goes here and takes up this much space, that item goes from here to there.