Container queries allow you to set styles based on a component's current size, instead of the browser window size. This provides flexibility to the layout and increases isolation. Container units are units based on the container's dimensions, and can be used to size components within the container.
Table of contents
Block and inline sizingHow to use container queriesorientation and aspect-ratioWhat are container query units ?Use cases for container queries and container unitsWhen to use media queries insteadBrowser support and style queriesConclusionSort: