Blog

:nth-last-of-type(n) and :last-of-type selectors

:nth-last-of-type(n) and :last-of-type selectors

The :nth-last-of-type(n) selector matches every element that is the nth child, of a particular type, of its parent, counting from the last child.

The :last-of-type selector matches every element that is the last child, of a particular type, of its parent.

Thanks Gonzo!

Leave a Comment