CSS Live Demo: :nth-last-of-type(N)

Your results appear here: