content.png | World Anvil
An image showing the structure of a div: the content, the padding, the border, and the margin.

content.png

This is the structure of a div (what we in WorldAnvil call containers).

In each div, there is the main content (blue box), where we will see all we have added inside the container.

Then we have the padding (green box), which is invisible space between our content and our borders.

The borders (yellow-box) are in between padding and margin, and they are the lines that (sometimes, when we set them) surround our containers.

Finally, we have the margin (orange-box). The margin is more invisible space, it surrounds our content and separates it from other content outside our div / container.

World
Meta world
Owner
Catoblepon
Views
106
Original Title
Structure of a div (container)
Artist
Chrome

Comments

Please Login in order to comment!