

After a somewhat slow start due to varying degrees of support by the major browsers, the use of cascading style sheets (CSS) has moved from simple text formatting to the de facto standard for page layout. Throughout this gradual evolution, Dreamweaver has regularly added and enhanced CSS features to support designers and developers alike. With the release of Dreamweaver CS4, new features such as Live view will completely change the way in which we go about designing CSS-based layouts in Dreamweaver. This article discusses best practices for using CSS and highlights specific CSS features in Dreamweaver CS4.
Cascading style sheets are, in general terms, a collection of formatting rules that control the appearance, or presentation, of content on a web page. Implementing CSS within a page or site is done in one of three ways:
Many websites use a combination of these methods. Inline styles, however, should be avoided. If you use inline styles for testing during development, you can move them to your external sheet in Dreamweaver by choosing Format > CSS Styles > Convert Inline CSS to Rule. It's also a good idea to limit the use of embedded styles to keep your CSS more easily editable sitewide. Many people prefer to develop the initial framework of CSS styles for a site using the embedded method, but they should be moved to an external style sheet when done.
An important consideration in the use of CSS styles is that different browsers (and different versions of the same browser) render CSS styles differently. In addition to variations in web browser compatibility, you should be aware that many other types of browsers exist, such as aural browsers, TV-based browsers, handheld devices (including those from Palm and Blackberry), and TTY (teletypewriter) devices.
If you want to learn more about the basics of CSS before learning more about CSS best practices, review some of the materials listed in the Where to go from here section.
In order to make the most of this article, you need the following software:
Some familiarity with CSS concepts is required.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
In demand by top U.S. firms, Stephanie Sullivan is a world-class web standards, Dreamweaver, and accessibility expert whose razor-sharp CSS and (X)HTML skills make her company, W3Conversions, a peerless authority for training corporate web teams and transforming in-house designs into efficient, standards-based websites. Sullivan created the CSS layouts for Dreamweaver CS3 and is coauthor of the respected project-based book Mastering CSS with Dreamweaver CS3 and Mastering CSS with Dreamweaver CS4. She's co-leader of the influential Web Standards Project Adobe Task Force, a partner at Community MX, and a speaker who engages audiences around the world with her dynamic presentations. When she's not coding or talking to the little people inside her computer, she escapes to play squash or beach volleyball. Yes, she loves 80s Wave music.
Greg Rewis is group manager, Creative Solutions Evangelism at Adobe Systems. With over 20 years of computer industry experience, Greg spends in excess of 200 days of the year on the road, talking with customers, giving product demonstrations at trade shows and seminars, speaking at industry conferences, and leading specialized, advanced training sessions featuring the Adobe Web Tools product line. Greg has been passionate about the web since putting his first "home page" online in 1994. His career has taken him around the world, from the early days of desktop publishing, to a start-up in Hamburg, Germany, the glory days of the web at Macromedia and finally his current role at Adobe. The original GoLive Cyberstudio Product Manager and former Dreamweaver Technical Product Manager, Greg is the co-author of Mastering CSS with Dreamweaver CS3 and the newly released Mastering CSS with Dreamweaver CS4 published by New Riders.