DEV Community

Discussion on: Why CSS Grid is better than Bootstrap for creating layouts

Collapse
 
andreasoverland profile image
Andreas Øverland

Great points. I especially agree that using classes like col-xs-4 and so forth, complicates the code both in HTML and CSS.

Question : Compared to just plain flex box in css, what are advantages and disadvantages over css grid?

Collapse
 
perborgen profile image
Per

I think CSS Grid is better for two-dimensional layouts while Flexbox is better for one dimension, as Grid is a bit of an overkill for one dimension. They're also great to use together actually.

I actually talk about Grid vs Flexbox in this tutorial: scrimba.com/p/pWqLHa/cZgMGt4