Chapter 11. Text and fonts


This chapter covers
  • Adding custom fonts to your pages with @font-face
  • Detailed control of font rendering with font-feature-settings
  • Improving readability with CSS columns
  • Controlling text wrapping and overflow


Despite being designed from the start as a way to share text documents, the web has traditionally had poor typography. In this chapter, you’ll learn how all that is changing as CSS3 brings in many new features for control of fonts and text.

Basic web fonts

Typography, the art of setting and arranging type, is a big part of design; a particular typeface is often as much a part of a company’s image as its ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.