C H A P T E R  6

Box Model Properties

This chapter shows how box model properties style the various types of boxes. These are basic design patterns.

The Margin, Border, and Padding design patterns contain examples contrasting how each property works in each type of box. Their main purpose is to contrast in one place how the same property means different things in different contexts. When using this book as a reference, you may also want to refer to the Margin, Border, and Padding design patterns to determine which type of element, box, and property will do what you want.

Chapter Outline

  • Margin contrasts how margins work differently for different types of boxes. It shows how margins change the position of an element in relation to its container ...

Get Pro HTML5 and CSS3 Design Patterns 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.