3
Vent: That CSS grid trick at a meetup in Portland
I was at a coworking space in Portland last month watching some guy code a responsive dashboard layout in like 20 lines of grid CSS. He used named grid areas and minmax for the columns and it blew my mind how clean his code was. Has anyone else had a moment where a simple layout trick made you rethink how you write CSS?
2 comments
Log in to join the discussion
Log In2 Comments
oscarm241d agoOG Member
...and people act like this is some kind of breakthrough. I mean, yeah, named grid areas are neat and all. But 20 lines of CSS to do something that works in Flexbox with a couple more lines? Not exactly a revolution. Every few months someone at a meetup rediscovers a trick that's been in the spec for years and suddenly it's "game changing." I'd be more impressed if someone could write a responsive layout without touching a single media query, which, news flash, grid can't always do either. It's a layout tool, not a magic bullet.
2
blair_butler471d ago
@oscarm24 hit the nail on the head. Every time I see another "grid changes everything" talk at a local meetup, I just want to ask if they've ever actually shipped a production site that had to work in IE11. But hey, at least the slides will look nice. They always do.
4