CSS

Box Model

Definition

Every HTML element is a rectangular box consisting of content, padding, border, and margin. `box-sizing: border-box` makes width/height include padding and border, which simplifies layout calculations.

Code Example

Css

Learn More

Related Terms