About Lesson
The box-sizing property in CSS defines how the user should calculate the total width and height of an element i.e padding and borders, are to be included or not.
Property Values: All the properties are described well with the example below.
content-box: This is the default value of the box-sizing property. In this mode, the width and height properties include only the content. Border and padding are not included in it i.e if we set an element’s width to 200 pixels, then the element’s content box will be 200 pixels wide, and the width of any border or padding will be added to the final rendered width.
Exercise Files
No Attachment Found
Join the conversation