13.9. Create a Compound Style

You can create styles using the class, tag, or ID selectors, or you can create a compound style that combines one or more styles to create a more specific style.

In the example shown in this section, a compound style is used to add a border to the image in the main area of the page without adding a border to the image in the header.

Create a Compound Style

Add a Border Only to a Main Image

Note: If the CSS Styles panel is not open, click Window and then click CSS Styles to open it.

Click to select the image in ...

Get Teach Yourself Visually™ Adobe® Dreamweaver® CS5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.