I want to select the the first div with con and car among all the div using css selector.
<div class="box">
<div class="con">1</div>
<div class="con be">2</div>
<div class="con car">3</div>
<div class="con">4</div>
<div class="con be">5</div>
<div class="con car">6</div>
</div>
And the con and car div can be in any place. Since it's the 3rd child right now I can call it by putting nth child as 3rd child. But it is the first div with con and car class. I may add more con and car class div's but I want to be able to select and style the first con and car div despite it's position. How can I do that??