You are here : cssCSS 3box-sizing

box-sizing - CSS 3

The box-sizing property is used to tell the browser what the sizing 
properties (width and height) should include.Should they include the border-box? Or just the content-box (which is the 
default value of the width and height properties)?


Syntax

box-sizing: content-box|border-box|initial|inherit;


Example

div {    width: 300px;    height: 
	100px;    border: 1px solid blue;    
	box-sizing: border-box;}


Output / Return Value


Limitations


Alternatives / See Also


Reference