CSS Grid That Replaced Half My Media Queries
The card wall had four breakpoints, and none of them knew how much space they actually had. One line of grid asked the container instead of guessing at the viewport.
A stack of breakpoint media queries reflowing a card grid came down to a single intrinsic grid declaration. The layout started responding to available space instead of to guesses about screen width. read more...
- Web Platform


