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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.