Answers for "css alternate child"

CSS
4

select odd child css

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

css select alternate elements

.text:nth-child(odd)
{
    color: green;
}
.text:nth-child(even)
{ 
      color:Red;
}
Posted by: Guest on December-03-2021

Browse Popular Code Answers by Language