IT lexicon › Web › Containing Block

Containing Block

Web På svenska → Updated: 2026-11-15

The box that serves as the reference frame for an element's positioning and size calculations.

For most elements, the containing block is the parent element's content box. For positioned elements or when the CSS property contain is set, it may be a different box. Understanding containing blocks is fundamental to grasping how position: absolute, percentage widths, and transform work, and it directly connects to layout boundaries and rendering performance.

← Back to the lexicon