by slowwriter · 3y ago · 0 comments
The very first demo in the MDN doc for :nth-last-child helped me understand: https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-last-c... – just change the "-n + 3" to "n + 3" to match the example in the article.
In that case the selector starts at the third element from the bottom and ends at the top element, matching a total of 6 elements.
No comments yet.