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