Descendent selectors


show more Descendent selectors provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Descendent selectors

If you're limited to only using element, class, and ID selectors, chances are your CSS would not be very efficient and that you'd be limited in terms of what you can achieve with your styling. Well, thankfully, there are many other powerful types of selectors, and some of which we'll explore in just a moment, but perhaps the most powerful targeting ability CSS gives us is the ability to combine selectors together in what is known as descendent selectors. By using descendent selectors we can more precisely target content based on the relationship between nested tags and their parents.

And I want to illustrate this for you. I have descendent.htm opened, and you can find this file in the 02_09 directory. And before we take a look at the code, I want to just preview this in the browser, so I'm just going to go ahead and preview this in one of our browsers. And you can see a lot of styling has already been done for us before we begin to style ourselves, but there are some stylin...

Descendent selectors
Video duration: 7m 32s 8h 52m Beginner

Viewers:

Descendent selectors provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...