N
needin4mation
It's from a book I'm reading css in 24 hours (not homework).
It says (pg. 103):
p em.old
"Select any <em> tag that's both part of the class old and within a <p>
tag."
Why is this not
p.old em
I thought the generic selector for p tags would come first, then the
class. I thought that by putting the class first, the .old, that
everything after that is supposed to be within the old class. How
could putting the em in front of .old ever make it part of the .old
class? Thanks.
It says (pg. 103):
p em.old
"Select any <em> tag that's both part of the class old and within a <p>
tag."
Why is this not
p.old em
I thought the generic selector for p tags would come first, then the
class. I thought that by putting the class first, the .old, that
everything after that is supposed to be within the old class. How
could putting the em in front of .old ever make it part of the .old
class? Thanks.