Loading video...

Video Failed to Load

Go Home

This is the first time I've seen this used in production - really neat technique! The new Stripe dev site uses a single grid layout of 24 columns and then uses subgrid nested 5-6 levels deep for all its layout.

117,837 views • 2 years ago •via X (Twitter)

10 Comments

Thomas Lefebvre's profile picture
Thomas Lefebvre2 years ago

A related nifty trick is to encode a "bleeding" and a centered track size + additional padding inside the main grid. Then each subgrid can decide if they go fullscreen or stay centered, while maintaining alignment across.

Wes Bos's profile picture
Wes Bos2 years ago

I love this trick! so many times I've wanted to "break out" of the max-width of a section, and this makes that very easy

andi (e/alb)'s profile picture
andi (e/alb)2 years ago

died 2016 born 2024 welcome back bootstrap col-md-6

؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜Lochie's profile picture
؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜Lochie2 years ago

damn dude 960 was over 10 years ago.. 💀

Wes Bos's profile picture
Wes Bos2 years ago

feels like just yesterday. I would even print out the paper grid to wireframe websites

Hernán Sartorio's profile picture
Hernán Sartorio2 years ago

I’m using subgrid for the layout system of my website builder, makes building nested columns so much easier.

Josh Johnson's profile picture
Josh Johnson2 years ago

Seeing that 960 grid screenshot brought back all the feels.

Merill Fernando's profile picture
Merill Fernando2 years ago

So basically an Excel spreadsheet

James Warner's profile picture
James Warner2 years ago

I was optimistically using subgrid for some core layouts but discovered it had some really annoying bugs in Safari! it commonly rendered grid items in the wrong place while the element bounds were correct 🙃

Wes Bos's profile picture
Wes Bos2 years ago

of course 🙃 Did you see if there were any issues logged in webkit bugzilla?

Related Videos