CSS Dojo道場 · practice
All levels

A running total

Level 6 of 8

Your goal

Count the items: counter-reset on .list, counter-increment on .item. Then print the total in a 20px-tall block .total::before, which makes the footer bar 20px taller.

Must usecontentcounter-resetcounter-increment
Elements

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.