Box Model

Box Model in CSS describes the layout of HTML elements, including margins, borders, padding, and the actual content. Imagine each HTML element as a box when you pack for shipping: the content is what you put inside the box, padding is bubble wrap around the content, the border is the edges of the box, and the margin is the clearance between your box and others.

Was this article helpful?

Related Articles