Is there a way I can make this text alternate in color using CSS. I tried using whatever:nth-child(odd) but it doesn't work for nested divs.
<div class="whatever">
this is some text
<div class="whatever">
this is some text
<div class="whatever">
this is some text
<div class="whatever">
this is some text
</div>
</div>
</div>
</div>