Struggling with selecting specific divs in CSS.
Snippet of my code:
<div class="card">
<div class="test">Asdasdasd</div>
</div>
<div class="card">
<div class="test">Asdasdasd</div>
</div>
<div class="card">
<div class="test">Asdasdasd</div>
</div>
<div class="card">
<div class="test">Asdasdasd</div>
</div>
My goal is to only style the first and third "test" divs (or the fifth one if there are six card divs).
I attempted to use :nth-child(odd)
without luck.