Basic use
example.css
.card {
container-type: inline-size;
}
The container-type property makes an element a containment context for container queries. Use inline-size for most width-based component queries.
.card {
container-type: inline-size;
}.card {
container-type: inline-size;
}container-type is a CSS property.
Check support for your audience.
Bottom line: Prefer progressive enhancement when support varies.
Continue with content-visibility.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
3 people found this page helpful