skip to Main Content

Html – Using nth-child for inconsistent formatting?

What is the most economical way to write this code? .colHeaders div:nth-child(2), .colHeaders div:nth-child(3), .colHeaders div:nth-child(4), .colHeaders div:nth-child(11), .colHeaders div:nth-child(12), .colHeaders div:nth-child(14), .colHeaders div:nth-child(15), .colHeaders div:nth-child(16) {background: lightgrey;} And why can I tell nth-child to skip children at the start,…

VIEW QUESTION
Back To Top
Search