Container query units
noun
say it: “kun-TAY-ner KWEER-ee YOO-nits” /kənˈteɪnər ˈkwɪri ˈjuːnɪts/
CSS units measured from a container instead of the screen; 1cqi is 1% of the container's width, the way 1vw is 1% of the window's.
What are container query units?
Container query units like cqw and cqi are percentages of the container's size, the way vw is of the screen.
.card-title { font-size: clamp(1rem, 5cqi, 1.5rem); }
In a sentence
- “The card title is sized in container query units, so it's bigger in the wide spot and smaller in the sidebar.”
Level: Freelancer · More CSS terms at this level
Updated