O'Reilly logo

The Definitive Guide to HTML5 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  18

Using the CSS Selectors—Part II

In this chapter, I continue your tour of the CSS selectors and show you the pseudo-classes. As with the pseudo-elements, these are not classes that have been applied to your elements, but a convenience that allows you to select elements based on some common characteristics. Table 18-1 provides the summary for this chapter.

Image

Image

Using the Structural Pseudo-Class Selectors

The structural pseudo-class selectors allow you to select elements based on where they are in the document. These selectors are prefixed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required