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

Chapter 2. How CSS Works > Targeting Tags Within the Document Hierarchy

Targeting Tags Within the Document Hierarchy

If you have forgotten what the document hierarchy is since the end of the last chapter, you might want to reread “Document Hierarchy: Meet the XHTML Family” in Chapter 1 now so that I can avoid the redundancy of repeating myself repeatedly and redundantly.

Using Contextual Selectors

To view the code discussed below, you can go to the Stylin' site (www.bbd.com/stylin) and download the template, contextual_selectors_tmpl.htm, and paste the styles between the style and /style tags in the head of the document, as indicated in the template. Then just open the document into your browser to see what those styles do to the markup.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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