container (shorthand)
container (shorthand) is a CSS property in the Layout category. A shorthand for setting container-name and container-type. The syntax is container: <name> / <type>. A typical example: container: sidebar / inline-size; A close relative is display, which sets the display behavior of an element. A close relative is visibility, which controls whether an element is visible. A close relative is overflow, which controls how overflowing content is displayed. More about this category: CSS layout properties for positioning and arranging elements on a web page. Related Layout entries: display, visibility, overflow, overflow-x, overflow-y, contain, resize, object-fit. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support. You can look up any other entry from the search page or return to the CSS Reference homepage.