Learn HTML
CSS Introduction
CSS Basic Syntax
CSS Selector
CSS Units
CSS Text
CSS Border
CSS Outline
CSS Padding
CSS Margin
CSS Height & Width
CSS Overflow
CSS Resize
CSS Background
CSS Box Sizing
CSS Position
CSS Float
CSS Clear
CSS Clip Path & Shape Outside
CSS Display
CSS Media Queries
CSS Pseudo Classes & Elements
CSS Filter
CSS Transition
CSS Transform
CSS Animation
CSS List Style
CSS Table
CSS Scrollbar Styling
CSS Icon
CSS Cursor
CSS Variable & Calc
CSS User Select
CSS Flexbox
Learn Javascript
Learn Django
Imagine there is a box with content and the width of that box
is 200px. Now if we add border 10px from left and right side then the box width will increase.
It means after add border the width will be 220px.Now if we add padding 10px from the right and left side then
the total width of the box will be 240px. But we don't want
to increase the width. To solve this problem we use box-sizing property.
The values are:
box-sizing: border-box;
This property helpS us to solve that problem. If you use this property the width will not increase if you add
padding, margin or border.
box-sizing:content-box
This is the default value. We don't need to use this value