HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

box-sizing

Description

The box-sizing property for CSS 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

1 · border-box

2 · content-box

3 · JS