DEV Community

Cover image for CSS Box Model
Md Shah Jalal
Md Shah Jalal

Posted on

CSS Box Model

What is CSS Box Model?

Don't panic. We can consider all HTML elements as boxes. Why do we need to know the term "Box Model"? Ok, keep patient.
When we focus design and layout of a web page, the term "Box Model" includes in our thinking. Isn't it?
The CSS box model is a box that covers around every HTML element. It consists of margins, borders, padding, and the actual content. That's it!🎯

Top comments (0)