Re:Using CSS Grid where appropriate (revisited)
by ericand on Tuesday September 18, 2018 @12:43PM
(#18016816)
Is CSS grid an alternative to flexbox?
[ Parent
| on HN ]
Re:Using CSS Grid where appropriate (revisited)
by gramstrong on Tuesday September 18, 2018 @01:00PM
(#18016978)
It shouldn't be, AFAIK they should be used together. Use CSS grid for general layout of multiple elements on a page or area. Use flexbox to style something that suits a row or column.
When you find yourself nesting flexboxes, switch to CSS grid would be my advice.
Re:Using CSS Grid where appropriate (revisited)
by purple-dragon on Tuesday September 18, 2018 @12:51PM
(#18016898)
No, but also yes... in the way that a table or div elements and css styles are also alternatives to flexbox.
Re:Using CSS Grid where appropriate (revisited)
by sureaboutthis on Tuesday September 18, 2018 @01:25PM
(#18017258)
No. Flexbox works in only one direction at a time while grid is designed for whole areas.