div div p:nth-child(1 to 5)
How can I select multiple numbers with nth-child, so I get children from 1 to 5 without having to write:
div div p:nth-child(1), div div p:nth-child(2), div div p:nth-child(3), div div p:nth-child(4), div div p:nth-child(5) { }
So it should look like this:
div div p:nth-child(1 to 5)
source share