🔰combinators

CSSselectors ⟩ combinators

A, B    /* A or B */

A.B    /* A (with class B) */

A B    /* B (descendent of A) */
A > B    /* B (direct child of A) */
A + B    /* B (next sibling of A) */
A ~ B    /* B (following sibling of A) */

Last updated