Roger Johansson of 456 Berea Street has written the first of three articles on CSS 2.1 selectors
The good news is that Internet Explorer 7 will have much better support for selectors. Knowing that you will be able to put them to good use in the future, now is as a good a time as any to learn about the full range of selectors that are available.
Since there are so many CSS selectors, a single article explaining them all would become very long. To make the information easier to digest I have split this into three parts:
- Part 1, this article, explains the basics of selectors plus the universal, type, id, and class selectors.
- Part 2 is about combinators, combined selectors, grouping, and attribute selectors.
- Part 3 will be all about pseudo-classes and pseudo-elements.
I will post the articles over a couple of weeks and update each of them with links to the other parts as they are published.
This is a good, concise summary that contains a handy reference chart of child, sibling and descendant selectors, as well as matching attribute values and so on.





Add your Comment