CSS Combinators - Activity
Instructions:
Using the files provided
- Give all descendant
p
elements of#div1
a black background color with white font. - Give only child
p
elements of#div2
a cyan background with red font, exclude paragraphs in the span element. - Give all general sibling
p
elements of#div1
a blue font. - Give all adjacaent sibling
p
elements of#div2
a yellow background color. - Give
#div1
and#div2
a border without adding the border to all divs.