DEV Community

Discussion on: Flexbox vs CSS Grid: Which one do you prefer?

Collapse
 
cchana profile image
Charanjit Chana

Even now I'm still discovering layouts and techniques that make flexbox very flexible. There are a bunch of properties I wish it could take from grid to make it a bit more intuitive for layouts (gaps for example), but I haven't yet come across a use case for grid in my projects. I need to experiment more with grid, but right now I'm able to achieve responsive layouts with less CSS using flexbox.

Collapse
 
cchana profile image
Charanjit Chana

This excellent video on container queries with flexbox actually highlighted that the gap property is there to use with flexbox in the latest version of some browsers.

Not sure if it's a game changer, but there are certainly times where specifying the gap is more useful that specifying the width of elements.