Container type
noun
say it: “kun-TAY-ner TYPE” /kənˈteɪnər taɪp/
A CSS property that turns an element into a box its contents can measure; inline-size, its usual value, lets them check its width.
What does container-type do?
container-type turns an element into a query container. inline-size watches its width.
.product-grid { container-type: inline-size; }
In a sentence
- “I gave the sidebar a container type of inline-size, and from then on the cards inside it could check its width.”
Level: Freelancer · More CSS terms at this level
Updated