Morten Rand-Hendriksen: CSS Grid Changes Everything (About Web Layouts)
Channel:WordPress · Length:44:10 · Published:2017-06-30 · Views:51375
Summary
Morten Rand-Hendriksen argues that CSS Grid changes web layout, showing how to place content in cells independent of HTML source order and reshape layouts with media queries. It makes the case for using Grid now that browsers support it.
Why HN recommends it
HN commenters say it convinced them to drop other layout approaches and embrace Grid, and cite its advice on fallbacks for older browsers.
it has convinced me to stop using other layouts/frameworks and just embrace grid — HN, 2018
Web development · UX & UI design
Subtitles (excerpt)
[Applause] Just before I get started, um the slides for this talk are on my website right now. I'm telling you this because there's a ton of content and we have a short period of time here. So, I'm going to cram through it and you will want to review later. So, now you know where to find it. I have a book in my bag and on that book I draw all sorts of layouts all the time. That's how I design websites. I start with a piece of paper and I just draw some stuff and I go, "Haha, this would be super cool." So, a couple of years ago, I made this design and when you look at it, you go, "Yeah, this looks like a standard web design. It's fairly basic. It has some interesting stuff like there's the categories and title at the top and then you have the featured image and then you have the meta content on the left hand side or right hand side, right hand side. Um, and then the content itself and you go, "Yeah, sure. This is relatively easy to do except on smaller screens. I wanted to make a slight change. move the meta content from next to the content up above the featured image. And then on even smaller screens, I wanted to move the featured image up above rest of the content. And at this point, you go, this is not so easy.
On Hacker News
I'm reading the comments and I think there's a lot of misunderstanding about what CSS Grid is. Mostly because the spec is big and there's not just one way to do things, so it gets mixed with flexbox and tables. I recommend watching last year's Morten's CSS grid presentation[1] as it has convinced me to stop using other layouts/frameworks and just embrace grid, which is truly amazing and it has be… — rsoto, 2018-05
If possible you could alternatively have send her (every browser which doesn't support full grid) a mobile layout like described in the video: [VIDEO] > From this follows a simple but surprising truth: The lack of support for CSS grid in an old browser should not affect the experience of the visitor, but rather just make the experience different. > If you agree with this (and you should), there i… — BlackMonday, 2018-12
I remember a video + blog post about this, and it was suggested to just ship a mobile layout for browsers that don't support css grid. At least for personal sites that seemed reasonable. EDIT: [VIDEO] — keth, 2018-07
Related videos
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- Bret Victor - Inventing on Principle · Rui Oliveira · 54:20
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Mike Monteiro: F*ck You, Pay Me · CreativeMornings HQ · 37:53
- Music Software & Bad Interface Design: Avid’s Sibelius · Tantacrul · 21:35
- Pete Hunt: React: Rethinking best practices -- JSConf EU · JSConf · 29:31
- Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 · ReactEurope · 30:40
- Hey Underscore, You're Doing It Wrong! · InfoQ · 36:30
- Chris McCord - Keynote: Phoenix LiveView - Interactive Apps without Javascript - ElixirConf EU 2019 · Code Sync · 1:12:41
- OAuth 2.0 and OpenID Connect (in plain English) · OktaDev · 1:02:17
- !!Con 2016 - How I Code and Use a Computer at 1,000 WPM!! By Sina Bahram · Confreaks · 13:29
- Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ... · JSConf · 35:12
- RiftSketch: Live coding in VR with the Oculus Rift, Firefox WebVR, JavaScript and Three.js · Brian Peiris · 10:36