How do I choose the last 2 items in a list with css nth-child?

Viewed 70562

Is it possible? If not, is there a way to do it with jQuery?

4 Answers

For me it was this: li:not(:nth-last-child(-n+2))

Related