I somewhat understand descendant selectors, but the more complex examples are giving me trouble. For example:
#content .alternative p
Should this rule apply to p elements that are descendants of elements E, where E are :
#conten
t and .alternative
Or should rule apply to p
elements that are:
#content
.alternative
? How about the following rule?
#content .alternative .alternative1 p
About the first question: applies to p elements that are: descendants of element #content and also descendants of elements with class .alternative
The second one is the same, just with an extra level of depth.
Check this link for more info on selectors
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With