container-type
Widely availableSince 202396% of users
Defines an element as a 'container' so its children can query its size or state. 'inline-size' is the most common value, allowing responsive styles based on the container's width.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since February 2023. Widely available since August 2025.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- No
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
.parent {
/* Turns this element into a container for its children to query */
container-type: inline-size;
}
Values
normalsizeinline-sizescroll-statecontainer-type browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage96%of people can use this4% use a browser without it.
Browsers
105+
110+
16+
105+Mobile
105+Android
110+Android
16+iOS