Articles by

Geoff Graham

Read, write, coffee, web, repeat.

Direct link to the article container

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 …