div div p:nth-child(1 to 5)
How can I select multiple numbers with the nth-child, so I get the child elements 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)
nth-child
tricks are summarised by css-tricks.