Parent
Child
Child
Siblings
Select all children
Select only direct children
"selects one or more elements based on their source order, according to a formula." - CSS tricks
3n + 1, 4n - 1, 2n + 4
child:nth-child(-2n + 4)
child:nth-child(3n + 3)
child:nth-child(2n)
.child:nth-last-child(5)
.child:nth-last-child(3n + 2)
nth-child
nth-of-type
has()
has() is not supported yet :(
No :( We can only select a child through the parent
tilda selector ~
plus selector +
not a member of family, but can help to select a family member
Class vs nth child
nth child vs not
global not selector