Chapter 7. New CSS language features
- Selecting elements based on their parents
- Selecting elements based on their siblings
- Selecting elements dynamically according to user activity
Let’s remind ourselves what a CSS rule looks like.
In this chapter we’re concerned entirely with the parts of CSS that appear outside of the curly brackets—the selectors and associated syntax that makes up a CSS document. After this chapter, we’ll concentrate almost completely on the stuff that appears inside the curly brackets—the properties and values that define the visual effect to be applied. The stuff that appears inside the curly brackets ...