Answers for "how to select first 2 childs using nth-child in css"

CSS
2

how select two nt child with css

//Separate the classes with a comma ,

.ListTaskTime tbody tr >td:nth-child(3), 
.ListTaskTime tbody tr >td:nth-child(6),
.ListTaskTime tbody tr >td:nth-child(9) {
    /* Common Styles Goes Here, Styles will apply to child 3,6 and 9 */
}
Posted by: Guest on November-23-2020
0

select first 5 child css

li:nth-child(-n+5) {
    color: green;   
}
Posted by: Guest on May-28-2020

Browse Popular Code Answers by Language