DEV Community

Divya Divya
Divya Divya

Posted on

What are the elements of the Css box model?

The css box model is used to create the design and layout of the web pages. The box contains multiple properties like Content, Padding, Border and Margin.

Content: The text and images appear in the content of the box.
Padding: Clears an area around the content.
Border: It is a border that goes around the Padding and Content.
Margin: Clears an area outside the border both padding and margin are transparent.

Top comments (0)