Baseline Widely Selectors

:nth-child()

The :nth-child() and :nth-last-child() CSS functional pseudo-classes match elements based on their index within a list of elements. The :first-child and :last-child pseudo-classes match the first and last element in a list, and the :only-child pseudo-class matches an element with no siblings.

Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Safari 3.1
2008-03-18
Core-3 Stability
469d (1.3y)
Last: Firefox (2009-06-30)
BCD Keys Mapped
10
Group: Selectors

Browser Support Timeline

Safari v3.1 (2008-03-18) Safari on iOS v2 (2008-07-11) Chrome v1 (2008-12-11) Firefox v3.5 (2009-06-30) Firefox for Android v4 (2011-03-29) Chrome Android v18 (2012-06-27) Edge v12 (2015-07-29)
Green dot marks the first browser release (2008-03-18); blue dots show subsequent browser launches (+2689d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Safari desktop 3.1 2008-03-18
Safari on iOS mobile 2 2008-07-11
Chrome desktop 1 2008-12-11
Firefox desktop 3.5 2009-06-30
Firefox for Android mobile 4 2011-03-29
Chrome Android mobile 18 2012-06-27
Edge desktop 12 2015-07-29

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
css.selectors.first-child CSS 678d (1.9y)
css.selectors.first-child.no_parent_required CSS 3,551d (9.7y) limbo
css.selectors.last-child CSS 1,493d (4.1y)
css.selectors.last-child.no_parent_required CSS 3,551d (9.7y) limbo
css.selectors.nth-child CSS 469d (1.3y)
css.selectors.nth-child.no_parent_required CSS 3,551d (9.7y) limbo
css.selectors.nth-last-child CSS 678d (1.9y)
css.selectors.nth-last-child.no_parent_required CSS 3,551d (9.7y) limbo
css.selectors.only-child CSS 1,269d (3.5y)
css.selectors.only-child.no_parent_required CSS 2,386d (6.5y)