Chapter 5. Cascading Style Sheets™ (CSS)

 

Fashions fade, style is eternal.

 
 --Yves Saint Laurent
 

A style does not go out of style as long as it adapts itself to its period. When there is an incompatibility between the style and a certain state of mind, it is never the style that triumphs.

 
 --Coco Chanel
 

How liberating to work in the margins, outside a central perception.

 
 --Don DeLillo
 

I’ve gradually risen from lower-class background to lower-class foreground.

 
 --Marvin Cohen

OBJECTIVES

In this chapter you will learn:

  • To control the appearance of a website by creating style sheets.

  • To use a style sheet to give all the pages of a website the same look and feel.

  • To use the class attribute to apply styles.

  • To specify the precise font, size, color and other ...

Get Internet & World Wide Web: How to Program, Fourth Edition 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.