Counting with ::before
Level 5 of 8Your goal
Reset a counter on .box, increment it on .child, and print it with content: counter(...) in a 20px-tall block .box::before. The child moves down to y = 20 and the box becomes 60px tall.
Must use
contentcounter-resetcounter-incrementElements
Hover one to find it on the stage. Click it, or put your cursor inside its CSS rule, to focus on just that element.
target content boxtarget outer edge (green = matched, red = not yet)your element (hovered or focused)
Feedback updates as you type, and your CSS is saved in this browser. Exact target numbers are in the Target panel.