Flexbox vs. CSS Grid — Which is Better?

Layout Land3 HN recommenders · 2018–2020
314K views · explainer · evergreen · Uploaded 2018-01-30

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 as a short, clear rundown of one-dimensional versus two-dimensional layout.

Watch on YouTube

4 comments from Hacker News

@Deimorz2018 · in “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): [VIDEO]

RecommendsView on HN
@ljoshua2018 · in “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: [VIDEO]

Strongly recommendsView on HN
@JamesSwift2020 · in “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] - [VIDEO]

RecommendsView on HN
@JamesSwift2020 · in “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: [VIDEO]

RecommendsView on HN