O'Reilly logo

macromedia Dreamweaver 8 by Khristine Annwn Page

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required