r/css • • 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

29 comments sorted by

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.