I want to get the selector for when an element is the immediate child AND has a specific class. What ever style I apply to that selector should not affect the second instance of div.this_one.
<main>
<div class="this_one"></div>
<div></div>
<div class="this_one"></div>
</main>
In the example above, I want the selector for that first instance of div.this_one
<main>
<div></div>
<div class="this_one"></div>
<div class="this_one"></div>
</main>
In the example above here, none of the divs should be affected as the first div.this_one is not actually the immediate child.
I hope this makes sense.