Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Fashions fade, style is eternal.
—Yves Saint Laurent
How liberating to work in the margins, outside a central perception.
—Don DeLillo
Objectives
In this chapter you’ll:
• Control a website’s appearance with style sheets.
• Use a style sheet to give all the pages of a website the same look and feel.
• Use the class attribute to apply styles.
• Specify the precise font, size, color and other properties of displayed text.
• Specify element backgrounds and colors.
• Understand the box model and how to control margins, borders and padding.
• Use style sheets to separate presentation from content.