Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You’re going to be able to control every aspect of the box with CSS: the size of the padding around the content, whether or not the element has a border (as well as what kind and how large), and how much margin there is between your element and other elements. Let’s check out each part of the box and its role:
What is the content area?
Every element starts with some content, like text or an image, and this content is placed inside a box that is just big enough to contain it. Notice that the content area has no whitespace between the content and the edge of this box.
What is the padding?
Any box can have a layer of padding around the content area. Padding is optional, so you don’t have to have it, but you can use padding to create visual whitespace between the content and the border of the box. The padding is transparent and has no color or decoration of its own.