O'Reilly logo

Pro CSS and HTML Design Patterns by Michael Bowers

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

CHAPTER 11Spacing Content

This chapter discusses design patterns that put horizontal and vertical space around inline elements, which may contain text, images, objects, controls, and so on. This chapter contains the following design patterns:

  • Spacing shows how to space text and content. It simply groups together the many properties built into CSS that put space around and between blocks, text, and content.
  • Blocked shows how to render an inline element as a block element. This is a very important design pattern that is often combined with other patterns.
  • Nowrap shows how to prevent the browser from wrapping text across lines.
  • Preserved shows how to render whitespace in a document instead of collapsing it.
  • Code shows how to mark up computer code, ...

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