CSS COURSE • LESSON
📐 CSS Box Model
Master CSS and create modern responsive websites with EDUHUB CODE HUB.
CSS Box Model
Every HTML element is treated as a box.
The CSS box model consists of:
1. Content
2. Padding
3. Border
4. Margin
1. Content
2. Padding
3. Border
4. Margin
Example
div {
width:300px;
padding:20px;
border:5px solid blue;
margin:20px;
}