CSS · Properties — CSS Conditional Rules

container-name

The CSS container-name property. Initial value: none. Not inherited.

Syntax
container-name: none | <custom-ident>+

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: noneOrOrderedListOfIdentifiers.

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course