CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS box sizing Property

CSS box-sizing Property

 

 

The box-sizing property is used to specify how the width and height of an element are calculated i.e, is padding and borders included or not.

 

Default Value:-

 

Its default value is content-box.

 

Syntax:-

 

Its syntax is:- box-sizing: content-box | border-box | initial | inherit;

 

Further Explanation:-

 

Value Description
content-box The width and height properties include only the content.
border-box The width and height properties including content, padding, and border
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS