Flexbox vs. CSS Grid — Which is Better?
Why Hacker News recommends it
Recommended as a short, clear rundown of one-dimensional versus two-dimensional layout.
What it is
Jen Simmons explains the difference between CSS Flexbox and CSS Grid, and when to use each. She makes the case that Grid does not replace Flexbox and most sites use both.
Recommended by 3 HN commenters across 3 different months, 2018 to 2020.
What Hacker News said
Strong rec ljoshua · 2018-07 · on “Show HN: Layoutit – An interactive CSS Grid generator”
Here's a great explanation from Jen Simmons that really helped me understand the differences and respective strengths and weaknesses of each: [this video]
Recommends Deimorz · 2018-05 · on “Best Practices with CSS Grid Layout”
They serve different purposes, and you'll often want to use both for different pieces of the layout. Flexbox is for laying things out in one dimension, Grid is more for two-dimensional ones. This video might help show the difference (and all the Layout Land videos are great if you want to look more into CSS grid): [this video]
Recommends JamesSwift · 2020-04 · on “Ask HN: Resources to learn basic UI layout design for React apps?”
Grid is awesome, and I highly recommend learning what it can do for you. That said, they serve different purposes. However, between the two of them they address 97% of my needs on the frontend. This[1] is a good rundown of what the two do/dont do. [1] - [this video]
Recommends JamesSwift · 2020-04 · on “Ask HN: Resources to learn basic UI layout design for React apps?”
The two occupy a venn diagram of functionality. They do some stuff the same, but they also both do unique things the other doesnt. See this for a good rundown: [this video]