Intermediate
HTML & CSS
Q42 / 100
What does "box-sizing: border-box" change about how width and height are calculated?
Correct! Well done.
Incorrect.
The correct answer is B) It makes the specified width/height include padding and border, so the element's total rendered size matches the declared dimensions instead of growing beyond them
B
Correct Answer
It makes the specified width/height include padding and border, so the element's total rendered size matches the declared dimensions instead of growing beyond them
Explanation
By default (content-box), width/height apply only to the content area, with padding and border added on top; border-box includes padding and border within the specified width/height, simplifying layout math.
Progress
42/100