Answers for "css odd even child"

CSS
12

css odd even child

tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}
Posted by: Guest on February-26-2020
4

select even child css

li:nth-child(even) { /* Selects only even elements */
    color: green;   
}
Posted by: Guest on May-28-2020
2

select odd child css

li:nth-child(odd) { /* Selects only odd elements */
    color: green;   
}
Posted by: Guest on May-28-2020

Browse Popular Code Answers by Language