Container Queries: Components That Fit Their Space

A container query changes a component's style by the width of the box it sits in instead of the width of the screen, so one product card can be stacked in a narrow sidebar and side by side in a wide spot on the same page.

Updated

Cheat sheet: Container Queries: Components That Fit Their Space
Category
CSS
Level
Freelancer
Tags
@container, Container name, Container query, Container query units, Container type, CSS, Query container