box-sizing
Values
border-box
| content-box
Applicable to...
All elements that can have the properties width
and height
.
Inherited
No
Description
Defines whether the height
and width
of an element set the full dimensions of the border-box or not.
If the value is border-box
then the padding
is part of the width and height! Otherwise padding is added to the height and width values.
Examples
Compatibility
Chrome | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|
1.0+ | 1.0+ | 8.0+ | 7.0+ | 3.0+ |