mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 10:01:51 -04:00
fix(curriculum): add explanation for child combinator (#52403)
Co-authored-by: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,10 @@ dashedName: step-13
|
||||
|
||||
# --description--
|
||||
|
||||
The child combinator selector `>` is used between selectors to target only elements that match the second selector and are a direct child of the first selector.
|
||||
|
||||
This can be helpful when you have deeply nested elements and want to control the scope of your styling.
|
||||
|
||||
Use the `>` selector to target the unordered list elements within the `nav` elements, and use _Flexbox_ to evenly space the children.
|
||||
|
||||
# --hints--
|
||||
|
||||
Reference in New Issue
Block a user