4/5 In CSS, what is the difference between these statements. Thanks.
#foo h1, h2, h3 {property: value}
#foo h1 h2 h3 {property: value}
\_ The first one will match on (h1 elements nested within the element
with id="foo") or (all h2 elements) or (all h3 elements). The
second one will match on all h1 elements nested within h1 elements
second one will match on all h3 elements nested within h2 elements
nested within h1 elements nested within the element with id="foo"
I think.
\_ Crap, I just realized I accidentally wrote h1 h1 h1.
Do you mind revising your response? Sorry and thanks.
\_ Done |