Structural pseudo-class, E:nth-last-child(n) an E element, the n-th child of its parent, counting from the last one.
Accepts keywords 'odd' and 'even', a single number to target one item, a number followed by n eg. (2n) to target every second item, or a number followed by n+ another number eg. (2n+1) to target every second item starting at item 1.
- Live Example
- Play with the code in the textarea below.
- Introduced in CSS version
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 9 1 3.1 9.5 0.4
See the full list CSS properties and browser support: CSS Properties