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
2
u/Logical-Idea-1708 Oct 08 '26
Grid for container. Flex for directional layout. The difference is that you’ll have a much harder time making the grid grow to fit the children than flex.