Chapter 6. Building Style Sheet Web Pages

IN THIS CHAPTER

  • Cascading Style Sheets basics

  • Using external style sheets

  • Applying style sheet attributes

  • Dreamweaver Technique: Applying External Style Sheet Styles

  • Defining and inserting styles

  • Dreamweaver Technique: Crafting a Print Style Sheet

  • Understanding style properties

  • Specifying design-time style sheets

All publications, whether on paper or the Web, need a balance of style and content to be effective. Style without content is all flash with no real information. Content with no style is flat and uninteresting, thus losing the substance. Traditionally, HTML has tied style to content wherever possible, preferring logical tags such as <strong> to indicate emphasis to physical tags such as <b> for bold. But although this emphasis on the logical worked for many single documents, its imprecision made achieving style consistency across a broad range of Web pages unrealistic, if not impossible.

The Cascading Style Sheets specification has changed this situation — and much more. As support for Cascading Style Sheets (CSS) has grown, Web designers can alter font faces, type size, spacing, and many other page elements with a single block of CSS code — and have the effect ripple not only throughout the page, but also throughout a Web site.

Dreamweaver was one of the first Web-authoring tools to make the application of Cascading Style Sheets user-friendly — and in this latest version, Dreamweaver has integrated CSS throughout the program. Through Dreamweaver's ...

Get Adobe® Dreamweaver® CS5 Bible 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.