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

3.7. Subgroup Selectors

While a selector for a style sheet rule is most often an HTML element name, that scenario is not flexible enough for more complex documents. Consider the following possibilities:

  • You want certain paragraphs scattered throughout the document to be set apart from running text by having wider left and right margins.

  • You want all H2 elements in the document but one to be set to the color red; the exception must be blue.

  • In a three-level ordered list (OL) group, you want to assign different font sizes to each level.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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