Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pdog
· 8y ago · 0 comments
What is the advantage of using CSS Grid instead of Flexbox? The Bootstrap v4 already uses Flexbox for its grid system.
Comments
[–]
mrborgen
8y ago
Flexbox is built for one dimension layouts (e.g. a header), while Grid is built for creating two-dimensional layouts (e.g. an entire page).
Use both and you'll get the best of two worlds.
[–]
maxx
8y ago
The question is not Grid or Flexbox. You can (and will) use both.
[–]
kumarvvr
8y ago
CSS Grid can handle 2D layout requirements. 1D layout requirements in the 2D layout is managed by the flex-box, though the same can be easily be done with a nested CSS Grid.