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

Chapter 33. Styling for HTML Elements > Compound Selectors in CSS

Compound Selectors in CSS

I used .one in Listing 33.3 to demonstrate a class selector. It is a simplified form of *.one, which uses the universal selector (*) to determine a primary set of elements the declaration block applies to. *.one is a compound selector.

Compound selectors are essentially the combination of two or more simple selectors to further restrict the scope of the following declaration block. For instance,


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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