Menu Samaritan's Purse

LAST-CHILD

The last-child pseudo-class represents an element that is the last child of its parent.

It is the same as :nth-last-child(1).

SYNTAX

selector:last-child {
    property: value;
}

EXAMPLES

INTERNAL

first-child

first-of-type

last-of-type

nth-child

nth-last-child

nth-last-of-type

nth-of-type

only-child

only-of-type

EXTERNAL

World Wide Web Consortium (W3C)