Rant: A front end dev in Austin told me container queries make grid obsolete, and I almost believed him
Last Tuesday I was on a call with a dev from Austin who has been doing layout work since 2015, and he said grid is basically dead now that container queries are here. I sat there nodding for a second because he sounded so sure. Then I pulled up a dashboard I built 3 months ago, 12 cards in a grid, 4 columns down to 1, all done with grid-template-columns and auto-fit. No container queries needed. His point was that grid makes you think in rows and columns first, which locks you in. But that is the whole point. I want to define the structure and let the content fall where it should. Container queries are great for a card that needs to shift its internals, but they do not replace the parent grid doing the actual placement. I still use both, just for different jobs. So is grid really on the way out, or is this just the new thing everyone wants to talk about at meetups?
So we are just retiring entire layout systems now based on what a guy in Austin said on a Tuesday? Grid has been doing the heavy lifting for years and suddenly it is dead because container queries showed up, that is like saying forks are obsolete because spoons exist. Your 12 card dashboard is the perfect example, auto-fit does exactly what you need without any extra fuss. Container queries are for the inside of the card, grid is for where the card goes, and that is not a hard thing to grasp. The meetup crowd just needs a new hot take every season, next year it will be something else that kills grid.