css select only first level child code example
Example 1: select first 5 child css
li:nth-child(-n+5) {
color: green;
}
Example 2: select first child in element css
p:first-child
{
background-color: yellow;
}
li:nth-child(-n+5) {
color: green;
}
p:first-child
{
background-color: yellow;
}