nth-child css-tricks code example
Example 1: css nth child
:nth-child(3) { //the number is the child number you are targeting
//styles here
}
Example 2: nth of type for every 4th after the 1st
:nth-of-type(4n+1)
Example 3: select first 5 child css
li:nth-child(-n+5) {
color: green;
}