CSS3 - Box Sizing

Box sizing property is using to change the height and width of element. Since css2, the box property has worked like as shown below −

width + padding + border = actual width of an element
height + padding + border = actual height of an element

Means when you set the height and width, it appears little bit bigger then given size cause element boarder and padding added to the element height and width.

Example -

Example -