CSS3 :nth-last Selector

Last Updated Jul 21, 2015, 12:00:06 PM





CSS3 :nth-last Selector

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

Syntax Example

Specify a background color for every

element that is the second child of its parent:


Try It Now

CSS Selectors Reference

CSS Selectors Reference

Other CSS Selectors you might want to learn

CSS Basic Selectors

CSS Combinators



Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM