4 ms·
Huh? I was only just starting to get used to flexbox. Are CSS grids meant to be a replacement/alternative/addition to flexbox?
by weavie 10y ago
Huh? I was only just starting to get used to flexbox. Are CSS grids meant to be a replacement/alternative/addition to flexbox?
- ahoy 10y agoNot really. Flexbox is good for laying elements out along a single axis, either horizontally or vertically. Grid is good for doing true 2-dimensional layout. You'll probably end up using both of them - grid for larger layouts and flexbox for smaller components. They work together fairly harmoniously.