I know that the Asterisk match all items inside an element. Is there any selector, that includes the parent element too?
Sample HTML
<p>
foobar
<span>
foobar
</span>
</p>
Sample CSS
p * {
background-color:aqua;
}
Now only the span elements inside the p gets the background-color. Is there a selector which matches the p tag and all tags inside the p tag? Or do i still have to use
p, p * {
background-color:aqua;
}
NOTE The background-color
is only dummy content.