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

Use Grouping

You can group selectors to apply the same style to multiple elements, and you can group declarations to apply multiple styles to one or more elements. Grouping is a great way to save space in style sheets.

Group Selectors

Suppose that you have multiple instances of headings (or any other element) that you want to style. Without CSS, you'd have to repeat style information within each header, like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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