1

I have these two examples:

<div class="hello">
    <figure> text </figure>
</div>

<div class="hello">
    <figure> text </figure>
    <figcaption></figcaption>
</div>

Via CSS, is it possible to target the hello div only if it does not contain the <figcaption> tag?

So with the above example, I want to target the first hello div...

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

0 Answers0