A CSS tutorial that builds a classic subgrid layout, then uses container queries to add subgrid to a featured card across breakpoints. It also shows how container queries can break subgrid when both are applied to the same element.
What you’ll learn
✓Align card rows and columns across a grid with subgrid
✓Change a featured card's layout with container queries
✓Spot when container queries break subgrid on the same element