Does the height and width of an HTML box include the box’s padding, border, and margin?


#1

Question

Does the height and width of an HTML box include the box’s padding, border, and margin?

Answer

No. By default height and width properties affect the dimensions of the content area alone. As you will learn in the next lesson, this default behavior can be modified with the box-sizing: border-box; declaration.