Description

Structural pseudo-class, E:nth-last-of-type(n) an E element, the n-th sibling of its type, 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.

See also:

  • :first-child
  • :nth-child
  • :last-of-type
  • :nth-last-child
  • :nth-of-type
  • :only-child
  • :only-of-type
  • Live Example
    Play with the code in the textarea below.

    Introduced in CSS version
    3
    Inherited
    Yes
    Browser Support
    BrowsersIEFirefoxSafariOperaChrome
    Versions913.19.50.4
    Belongs to:

    See the full list CSS properties and browser support: CSS Properties