0

I have the following structure:

<div class="parent">
    <div>
        <div class="parent">
            hello
        </div>
    </div>
</div>

Is there any way using only CSS to apply some style to the parent only if a parent not contain any other parent?

undefined
  • 4,396
  • 5
  • 28
  • 60

0 Answers0