0

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.

Henrik Petterson
  • 6,862
  • 20
  • 71
  • 155

0 Answers0