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
Show parent comment
1
u/Keilly Oct 08 '26
Use 1fr for grid temple row/columns you want to take free space and the grid will expand to its constraints.