This course will be retired on July 12, 2021. We recommend "CSS Basics" for up-to-date content.
box-sizing and max-width6:31 with Guil Hernandez
With the box-sizing property, we can alter the way the browser calculates an element's total width and height. We're also able to set the maximum width of an element with the max-width property.
Alters the default CSS box model used to calculate widths and heights of elements.
Sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value set for max-width.
You need to sign up for Treehouse in order to download course files.Sign up