1/* Selects the second <li> element in a list */
2li:nth-child(2) {
3 color: lime;
4}
5
6/* Selects every fourth element
7 among any group of siblings */
8:nth-child(4n) {
9 color: lime;
10}
11
1
2:nth-child(1) { /*advantage is you can do it for 2nd, 3rd etc. */
3 /* styles go here*/
4}
1:nth-child(3) { //the number is the child number you are targeting
2 //styles here
3}