Chapter 7. New CSS language features

 

This chapter covers
  • 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 ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.