Chapter 6

Building Style Sheet Web Pages

In This Chapter

  • Cascading Style Sheets basics
  • Using external style sheets
  • Applying style sheet attributes
  • Animating with CSS3
  • 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 have been able to alter the display of 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 website.

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

Get Dreamweaver CS6 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.