3 ms·
Not 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. Y
by ahoy 10y ago
Not 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.