Hour 19: Advanced Selectors
The CSS Level 2 specification introduced a number of additional selectors that are not yet fully supported by all browsers. These advanced selectors greatly increase the functionality and power of CSS, allowing rules based on complex relationships to be written. Full support of these new selectors, when available, will greatly extend the utility and power of CSS.
In this hour, you'll learn
- How to create CSS rules that select only those tags that have a specific attribute
- How to create rules based on the values of those attributes
- How to create rules that select direct children of another element and why you'd want to do that
- How to select an element that directly follows another element
- Which browsers support these advanced selectors
Sample Code
You can download the sample code from each hour as one package or individual files.
- Download all [1K tar.gz file]
- Listing 19.1 [HTML]
- Listing 19.2 [CSS]
- Listing 19.3 [HTML]
- Listing 19.4 [CSS]
Web Links
These are the links presented in this hour, given here for easy reference.
Updates and Errata
There are currently no updates to this hour's content.