Nima
0
Q:

css odd even child

tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}
6

  
    p:nth-child(2)
 {

     
 background: red;

 }
  
 
2
li:nth-child(odd) { /* Selects only odd elements */
    color: green;   
}
1

New to Communities?

Join the community