Menu Samaritan's Purse

BOX-SIZING

The box-sizing property defines whether fixed sizes are assigned to the content box or to the border box.

SYNTAX

CSS

box-sizing: value;

JS

object.style.boxSizing = "value";

VALUES

<'box-sizing'> = content-box | border-box
content-box

Sizes include the content. Sizes exclude the padding, border, and margin.

border-box

Sizes include the content, padding, and border. Sizes exclude the margin.

INITIAL

content-box

EXAMPLES

BORDER-BOX

CONTENT-BOX

JS

World Wide Web Consortium (W3C)