C H A P T E R  20

Working with the Box Model

In this chapter, I cover the CSS properties you can use to configure an element’s box model. As I explained in Chapter 16, the box model is one of the fundamental concepts in CSS, and you use it to configure the appearance of elements and the overall layout of your documents. Table 20-1 provides the summary for this chapter.

ImageImage

Applying Padding to an Element

Padding adds space between an element’s contents and its border. You can set padding for individual edges of the content box, or use a shorthand ...

Get The Definitive Guide to HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.