Answers for "how to target the first child in ul?"

CSS
2

li not first child

div ul:not(:first-child){
    background-color: #900;
}
Posted by: Guest on April-04-2022
0

select first 5 child css

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

Code answers related to "how to target the first child in ul?"

Browse Popular Code Answers by Language