MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

:nth-last-of-type

Change Revisions

Revision 57496:

Revision 57496 by Sheppy on

Revision 57497:

Revision 57497 by Sheppy on

Title:
:nth-last-of-type
:nth-last-of-type
Slug:
CSS/:nth-last-of-type
CSS/:nth-last-of-type
Tags:
css, "CSS Reference", Selectors
css, "CSS Reference", Selectors
Content:

Revision 57496
Revision 57497
n8      {{ CSSRef() }} {{ Fx_minversion_header("3") }}n8      {{ CSSRef() }} {{ gecko_minversion_header("1.9.1") }}
n14      The <code>:nth-last-of-type</code> pseudo-class matches an n14      The <code>:nth-last-of-type</code> pseudo-class matches an 
>element that has <tt><i>a</i>n+<i>b</i>-1</tt> siblings with the >element that has <code><em>a</em>n+<em>b</em>-1</code> siblings w
>same element name after it in the document tree, for a given posi>ith the same element name after it in the document tree, for a gi
>tive or zero value for <tt>n</tt>, and has a parent element. See >ven positive or zero value for <code>n</code>, and has a parent e
>{{ Cssxref(":nth-child") }} for a more thorough description of th>lement. See {{ Cssxref(":nth-child") }} for a more thorough descr
>e syntax of its argument.>iption of the syntax of its argument.
t20element:nth-last-of-type(<i>a</i>n + <i>b</i>) { <i>style propertt20element:nth-last-of-type(<em>a</em>n + <em>b</em>) { <em>style pr
>ies</i> }>operties</em> }

Back to History