O'Reilly logo

Bulletproof Web Design: Improving flexibility and protecting against worst-case scenarios with XHTML and CSS, Second Edition by Dan Cederholm

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

1. Flexible Text

Size text using keywords and percentages or ems to allow user control and maximum flexibility

Few Web design topics are as storied and controversial as sizing text for the Web. Historically, it’s been known to confuse beginners, fuel arguments, and divide nations. Well, perhaps that’s exaggerating things a bit, but it truly can be a sticky subject for many.

While I’m in no position to rid the world of its war on text sizing, in this chapter I share two strategies for sizing text on the Web that are both flexible and easy to implement—and at the same time allow you to maintain as much design control as possible.

The allowance for flexibility in sizing text is one of the keys that drive the rest of the examples in this book—that ...

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