Skip to main
Video
CSS snippet with card layout demo

Subgrid for Better Card Layouts

and fallbacks for legacy browsers

Card layouts are popular on the web, rows and columns of boxes with similar content. CSS grids can help align those cards, but it’s still be hard to line-up content inside the cards – headers and footers that might need more or less room.

That’s why we need “subgrid” – coming in Firefox 71 (Dec 3) and available now in Firefox Nightly. This is a great opportunity to quickly enhance our designs for modern browsers, without losing anything in the browsers without subgrid support.

Dont wait for full browser support to start using subgrids