O'Reilly logo

JavaScript™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

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

3. Cascading Style Sheets (CSS)

OBJECTIVES

In this chapter you’ll 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 properties of displayed text.

• To specify element backgrounds and colors.

• To understand the box model and how to control margins, borders and padding.

• To use style sheets to separate presentation from content.

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

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