O'Reilly logo

CSS & CSS3 by Robin Nixon

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

Images

Accessing Selectors

Images

         To view the accompanying video for this lesson, please visit mhprofessional.com/nixoncss/.

The means by which you access one or more elements is called selection, and the part of a CSS rule that does this is known as a selector. As you might expect, there are many different varieties of selector.

For example, you can select by the type of element to be styled (such as <p>, <div>, <img>, and so on), by whether an element is contained within another (is descendant), by descendant elements that are direct children (and ...

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