Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Please take into account current support for subgrid [1].

My first time redoing quite complex checkout table with mobile support was a nightmare. I only realised I needed something more halfway along the process. Found out it was subgrid I was looking for and they figuring out there was no current browser support.

But using a oneliner like `grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));` too almost fully create a grid system is pretty amazing and something you can use right now.

1. https://caniuse.com/#feat=css-subgrid



wow, you're not kidding. only latest FF supports subgrid ?!


Yes - it came out earlier this week or end of last week. But CSS Grid has been available since 2017. So, we are able to still solve a lot of layout issues with grid, than leaning 100% on flexbox.

Every tool for its purpose! We have nearly a full toolbox on the CSS side of things. Happiness.


not latest, but nightly FF. That's a pretty big non-starter.


Support is coming tho. Always good to hear about what's next.


I've gotten a lot of the benefit of subgrid by using display:contents




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: