CSS box-sizing Property Reference

The CSS box-sizing property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.

CSS box-sizing Property Reference

The CSS box-sizing property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

box-sizing overview

The CSS box-sizing property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

box-sizing formal syntax
FieldValue
Formal syntaxcontent-box | border-box
Initial valuecontent-box
Applies toallElementsAcceptingWidthOrHeight
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Box Sizing
StatusStandard

Practical examples

These declarations demonstrate valid ways to set box-sizing. The initial and inherit global keywords remain available even when a property-specific value is preferable.

box-sizing live example
CSS .reset-example { box-sizing: initial; } .inherit-example { box-sizing: inherit; } @supports (box-sizing: initial) { .supported { box-sizing: initial; } }

Description

The CSS box-sizing property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: box-sizing
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies