Appendix D. CSS3 Selectors and Pseudo-Classes
Although CSS3 is still being worked on as this book is being written, some browser vendors are starting to support properties from the unfinished specification. This appendix provides a listing of the new CSS3 selectors for your reference.
To get a solid idea of what tools you have at your disposal to apply styles to a document, consult Appendix C (which covers CSS 2.1 selectors) in conjunction with this listing.
Table D-1 describes the new CSS3 selector, the general sibling selector.
Note
In the “Generic pattern” column of Table D-1, the values C, R, and S take the place of type selectors.
| Selector | Generic pattern | Description | Sample |
General sibling combinator |
| Matches any |
|
Table D-2 contains a list of new attribute selectors. These allow greater control when selecting elements in a document based on an attribute’s value or even a small portion of that value.
| Selector | Generic pattern | Description | Sample |
Attribute selector |
| Selects any |
|
Attribute selector |
| Selects any |
|
Attribute selector |
| Selects ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access