• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Creating Styles > Specifying Groups of Elements

Specifying Groups of Elements

It’s often necessary to apply the same style rules to more than one element. You can either reiterate the rules for each element, or you can combine selectors and apply the rules in one fell swoop.

To apply styles to groups of elements

1.
Type selector1, where selector1 is the name of the first element that should be affected by the style rule.

2.
Type , (a comma).

3.
Type selector2, where selector2 is the next tag that should be affected by the style rule.

4.
Repeat steps 2–3 for each additional element.

5.
Create the rest of the style rule as usual (see page 134).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint