I need assistance in selecting the first div with both "con" and "car" classes among all the divs using a 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>
The "con" and "car" divs can appear in any order within the parent container. Although it is currently the third child, I want to target and style the first div with both "con" and "car" classes even if its position changes. How can I achieve this?