I understand a few descendant selectors, but more complex examples give me problems. For example:
#content .alternative p
If this rule applies to p elements that are descendants of the elements of E, where E:
- descendants of
#content and - are also members of the class
.alternative
Or, you should apply the rule to elements pthat:
- descendants of an element
#content - and are also members of the class
.alternative?
What about the following rule?
#content .alternative .alternative1 p
source
share