How to set CSS Style preferences in Dreamweaver

Last updated on Apr 27, 2021

Learn how to use CSS style preferences to control how Dreamweaver writes the code that defines CSS styles.

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.

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

When Creating CSS Rules Use Shorthand For

Lets you select which CSS style properties Dreamweaver writes in shorthand.

When Editing CSS Rules Use Shorthand

Controls whether Dreamweaver rewrites existing styles in shorthand.

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

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

CSS prefixes

Prefixed styles are added for gradients for the selected browsers.

Click OK.