<ol>
<li>A generic listing</li>
<li>A generic listing</li>
<li>A generic listing</li>
<li>A generic listing</li>
<li>A generic listing</li>
<li>A generic listing</li>
<li>A generic listing</li>
</ol>
/*
Color Odd List Items
*/
ol li:nth-child(odd){
background: yellow;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.