# CSS Box Model

# **CSS Box Model**

In CSS, the term "box model" is used when talking about design and layout.
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669800435731/F69QmJksM.png align="left")

**Explanation of the different parts:

- **Content** - The content of the box, where text and images appear
- **Padding** - Clears an area around the content. The padding is transparent
- **Border** - A border that goes around the padding and content
- **Margin** - Clears an area outside the border. The margin is transparent

The box model allows us to add a border around elements, and to define space between elements.

Example👇**

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669800460624/MwR7oVJ0b.png align="left")

-----------------------------------------------------------------------------------------------
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666336375150/5HqI8zNVh.png align="left")> 
Download our HTML & CSS Visual Treat! ebook Here: 
[Click here](https://codemarch.gumroad.com/l/hxazr)

