Skip to content

CSS Selectors

Direct Child

About

The child combinator > matches elements if they are direct children of the element on the left side of the combinator.

Direct children

The selector matches all .child elements that are direct children of a .parent element.

Nested children

Nested children are not matched by this selector. Use the descendant combinator if you want to match nested children.