css specify multiple nth-child columns with pattern code example Example: select first 5 child css li:nth-child(-n+5) { color: green; }