Skip to content

roots

child combinator

Tended 19 days ago Planted 19 days ago Mentioned 1 time

Contents

The child combinator [parent > child] scopes descendant styling from any descendant that matches the child selector to only direct descendants.

example

article > p selects only paragraphs that are directly within the article, not nested within other elements.

…whereas article p selects all p within article.

see also

reference:

Mentions

  • general sibling combinator

    …a paragraph provided **they share the same parent**. ### see also - [[child combinator]] ### references - [modern css](https://moderncss.dev/guide-to-advanced-css…