Learn
In this lesson, you learned about an important limitation of the default box model: box dimensions are affected by border thickness and padding.
Let’s review what you learned:
- In the default box model, box dimensions are affected by border thickness and padding.
- The
box-sizing
property controls the box model used by the browser. - The default value of the
box-sizing
property iscontent-box
. - The value for the new box model is
border-box
. - The
border-box
model is not affected by border thickness or padding.
Instructions
Take some time to experiment with your new knowledge of the box model in style.css. When you’re done, proceed to the next unit.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.