<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;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.