<ul>
<li>liste 1</li>
<li>liste 2</li>
<li>liste 3</li>
<li>liste 4</li>
<li>liste 5</li>
</ul>
li:nth-last-child(odd){
color: red;
}
li:nth-last-child(even){
color: green;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.