Search within TutorialsPark

CSS Pseudo Class Selector :nth-last-of-type


Selects elements that are the nth from last child of their type defined by their parent


Definition and Notes.

1. CSS Pseudo Class :nth-last-of-type(n) selects and styles element that is at nth-last position of a particular type within its parent element

2. Eg: p:nth-last-of-type(n) will select <p> element at nth position within its parents, counting from last child.


Pattern:

CSS :nth-last-of-type(n)Pseudo Class selector. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note: The value in brackets "n" can be a number, keyword or even a function(formula).


Related Examples.