Answers for "css to do odd children"

CSS
14

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 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