Creating Styles for Tag Combinations

You’ve used two selector types so far: class and tag. The third option in the New CSS Rule dialog box is the Advanced selector type, which enables you to create a variety of advanced styles, including contextual selectors that can be used to format combinations of tags—combinations being the circumstance in which tags appear within other tags.

In this exercise, you’ll specify a different format for text paragraphs with an alignment. Because you already created a style for the <p> tag, the paragraphs in the document currently reflect that formatting.

Place the cursor in the first paragraph located at the top of the document, just below the An Anusara Yoga Studio line. Use the tag selector to select the ...

Get macromedia Dreamweaver 8 now with O’Reilly online learning.

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