Chapter 14. Whitespace

by Chris Mills

Now you have a good understanding of how to mark up and add meaning and style to your headings and paragraphs, let’s look at how to control the space between your different pieces of content. This might sound trivial, but when designing a page this is just as important as the content itself. Obviously you need to think carefully about your site’s content—so, your navigation menu, heading structure, and writing style, etc. create a usable, comfortable user experience—but even the best content in the world will be horrible to sift through if it is all jammed together and crammed into a small space!

In this chapter we will look at how to use CSS to control your whitespace. I will give you a solid understanding ...

Get InterACT with Web Standards: A holistic approach to web design 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.