Skip to content

CSS Selectors

Last Child


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

Last child

The last div in the list is matched.

Flex Order

CSS properties like flex order or display: none don't affect the matching as the order in the DOM is what matters.