Okay let's go wild. Is it possible to check a condition using CSS like this:
If div with class hello
exists within <p>
tag, then add styling to the <p>
tag.
So:
<p>
<div class="hello"> world </div>
</p>
So I want to target and add styling to the <p>
tag, not the div tag.