DEV Community

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

Collapse
 
feerzlay profile image
Denis Yakshov

Most of the times I use flexbox. But grid is very helpful when there should be a spacing between elements (gap) or elements should be rearranged in some difficult manner (grid-template-areas for the rescue). Also auto-fill and auto-fit are amazing for a stuff like lists of cards.

Collapse
 
mattinreality profile image
MattInReality

Good news. Gap can be used with flex.

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Browser support isn't too great, though. But I'm hoping it will be one day. No more having to do "bottom + right margins on all except the last child"! And better LTR/RTL spacing!