How to add css for even odd li elements

This is the code by which i apply alternate css to my li elements –


.stream li { }
.stream li:nth-child(odd) { background:#CCCCCC; }
.stream linth-child(even) { background:#00FFCC; }

Advertisements
Posted in CSS