DEV Community

Discussion on: Why we need CSS subgrid

Collapse
 
johnkreitlow profile image
John Kreitlow

What's grid? I'm still riding the flexbox train off into the sunset 🚂

Collapse
 
kenbellows profile image
Ken Bellows • Edited

Oh my friend, if you've never tried grid, get ready to have your mind blown. IMO, Grid is hands down the single greatest improvement to CSS in a decade, and that includes Flexbox. I mean, don't get me wrong, Flexbox was a huge step forward and is still a great tool and a critical piece of the layout puzzle. But Grid is just... hoo, it's amazing.

The TL;DR is that Grid gives us native support for that thing we've been hacking into our HTML and CSS for like 20 years: proper Grid layout. It's incredibly powerful, and it's literally changing the way we write HTML+CSS. It's hard to overstate the effect it's having.

My recommendation to quickly see the power of Grid:

  1. Do this: cssgridgarden.com/
  2. Read this: dev.to/kenbellows/css-grid-areas-a...