Setting CSS Styles preferences

Setting CSS Styles preferences

CSS style preferences control how Dreamweaver writes the code that defines CSS styles. CSS styles can be written in a shorthand form that some people find easier to work with. Some older versions of browsers, however, do not correctly interpret the shorthand.

To display CSS style preferences:

  1. Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh) and from the Category list select CSS Styles.
  2. Set the CSS style options you want to apply:

    When Creating CSS Rules Use Shorthand For lets you select which CSS style attributes Dreamweaver writes in shorthand.

    When Editing CSS Rules Use Shorthand controls whether Dreamweaver rewrites existing styles in shorthand.

    Select If Original Used Shorthand to make Dreamweaver leave all styles as they are.

    Select According to Settings Above to make Dreamweaver rewrite styles in shorthand for the attributes selected in Use Shorthand For.

    When Double-Clicking in CSS Panel lets you select the tool you prefer to use in Dreamweaver to edit CSS rules.

  3. Click OK.

Related topics

  • Shorthand CSS properties
  • Using the CSS Styles panel


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Inserting and Formatting Text
Adding Audio, Video, and Interactive Elements
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly