:nth-child(2)p
{
background:
red;
} Odd and even are keywords
that can be used to match
child elements whose index is
odd or even (the index of the
first child is 1).
Here, we specify two different
background colors for odd and
even p elements:
:nth-childp
(odd){
background:
red;
}
p:nth-child
(even){
background:
blue;
}
(0) Comments here
Sir No Comment on this post Please Make a New