O'Reilly logo

Learning Web Design, 3rd Edition by Jennifer Niederst Robbins

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 12 FORMATTING TEXT

(Plus More Selectors)

IN THIS CHAPTER

The font-related properties

Text color

Text line settings such as line height, indents, and alignment

Underlines and overlines

Capitalization

Letter and word spacing

Descendant (contextual), ID, and class selectors

Specificity 101

Now that you’ve gotten your feet wet formatting text, are you ready to jump into the deep end? By the end of this chapter, you’ll pick up fourteen new CSS properties used to manipulate the appearance of text. Along the way, you’ll also learn how to use more powerful selectors for targeting elements in a particular context, and with a specific id or class name.

Throughout this chapter, we’ll be sprucing up the Black Goose Bistro online menu similar to the one we marked up back in Chapter 5, Marking Up Text. I encourage you to work along with the exercises to get a feel for how the properties work. Figure 12-1 shows how the menu looked the last time we saw it and how it will look when we’re done. It’s not a masterpiece, but it is certainly an improvement.

Image

Figure 12-1. Before and after views of the Black Goose Bistro menu that we’ll be working on in this chapter.

A Word About Property Listings

Each new property listing in this book is accompanied by information on how it behaves and ...

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