odd and even numbers css code example
Example 1: css nth child
:nth-child(3) { //the number is the child number you are targeting
//styles here
}
Example 2: select odd child css
li:nth-child(odd) { /* Selects only odd elements */
color: green;
}