xxxxxxxxxx
p:nth-child(2n+1){
background: #05ffb0;
border: 1px solid;
padding: 5px;
}
/* OR */
p:nth-child(odd){
background: #05ffb0;
border: 1px solid;
padding: 5px;
}
xxxxxxxxxx
tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}
xxxxxxxxxx
li {
color: black;
}
li:nth-child(odd) {
color: #777;
}
li:nth-child(even) {
color: blue;
}