O'Reilly logo

Cascading Style Sheets: Designing for the Web, Third Edition by Bert Bos, Håkon Wium Lie

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

Specifying typesetting properties is one of the most common uses of style sheets. Such properties include a font’s size, its width, its weight (is it light or bold?), and its posture (does it slant or stand upright?).

Getting the fonts you want with HTML is difficult because HTML was designed without any concept of fonts. In HTML, the appearance of the page is the result of the browser’s inserting styles it thinks are appropriate. It does this using the HTML structural information in your document. The lack of control over fonts in HTML has led to documents containing pictures of text instead of text. By making pictures of text, designers get total control over fonts. They can pick and choose between any font they have on their ...

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