O'Reilly logo

CSS3 Solutions: Essential Techniques for CSS3 Developers by Dan Saltzman, Aaron Congleton, Francesco Improta, Nathalie Wormser, Jonathan Reid, Marco Casario, Anselm Bradford

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

ChapterOpener_Casario.jpg

Chapter 2

CSS Selectors

In the previous chapter, we talked about how to build a CSS rule. You saw how a rule in a style sheet is made up of one or more selectors and by a group of properties and relevant values, expressed in the following form:

selector {

 property: value;

 }

A selector represents a structure, meaning it specifies which elements of an HTML page the rule will apply to. The properties and the relevant values deal with the presentation of these elements.

Therefore, one can guess that selectors are a fundamental part of CSS. Indeed, they’ve been around since the very first CSS specifications. Selectors Level 1 and Selectors Level ...

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