css pick child background color code example
Example 1: child css
p:nth-child(2)
{
background: red;
}
Example 2: select odd child css
li:nth-child(odd) { /* Selects only odd elements */
color: green;
}
p:nth-child(2)
{
background: red;
}
li:nth-child(odd) { /* Selects only odd elements */
color: green;
}