O'Reilly logo

The Definitive Guide to HTML5 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required