Josh Comeau personal blog

New layouts with CSS Subgrid

Subgrid allows us to extend a grid template down through the DOM tree, so that deeply-nested elements can participate in the same grid layout. At first glance, I thought this would be a helpful convenience, but it turns out that it’s so much more. Subgrid unlocks exciting new layout possibilities, stuff we couldn’t do…
Points
309
HN comments
98
Submissions
1
Cited by
0 commenters

Web & FrontendDesign & UX2025

On Hacker News

SubmittedTitle on HNPointsComments
Nov 25, 2025New layouts with CSS Subgrid by joshwcomeau30998

More from Josh Comeau

All 32 posts →

Related posts from the same era