1/* to color odd children in parent-container with children of type div */
2#parent-container > div:nth-child(odd) {
3 background-color:red;
4}
5
6/* to color even children in parent-container with children of type div */
7#parent-container > div:nth-child(even) {
8 background-color:red;
9}