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.
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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). Alsoauto-fill
andauto-fit
are amazing for a stuff like lists of cards.Good news. Gap can be used with flex.
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!