Direct link to the article container


The CSS container property is a shorthand that combines the container-name and container-type properties into a single declaration.

.parent {
  container: cards-grid / inline-size;

  /* Equivalent to: */
  container-name: cards-grid;
  container-type: inline-size;
Constituent properties

The container property is a …

Avatar of Geoff Graham
Geoff Graham on
Keep browsing in the archives