Actually I have confusion as I read two different things on these websites. I know about the box-sizing and how it effects box model, but what if we are not considering the sizing and want to tell the size of element. Refer the url's below:
http://www.w3schools.com/css/css_boxmodel.asp
The total width of an element should be calculated like this:
Total element width = width + left padding + right padding + left border + right border + left margin + right margin
The total height of an element should be calculated like this:
Total element height = height + top padding + bottom padding + top border + bottom border + top margin + bottom margin
https://css-tricks.com/the-css-box-model/
The size of the box itself is calculated like this:
Width= width + padding-left + padding-right + border-left + border-right Height= height + padding-top + padding-bottom + border-top + border-bottom
I think from my understanding we calculate width = width + padding + border as total width of an element in default box-sizing.
content-box
(does not include padding, border or margin) is different toborder-box
(does not include margin but includes padding and border) but they are both thebox
model so your question is too general really – StudioTime