DEV Community

Discussion on: Master useful CSS pseudo-elements

Collapse
 
machineno15 profile image
Tanvir Shaikh

can you tell me more about counter, itemCounter (::marker)? & how it works or any reference links

Collapse
 
ruppysuppy profile image
Tapajyoti Bose • Edited

You may check out the mdn docs or w3schools. Basically counter is used to count elements, counter-increment increments the count for the counter and counter-reset resets it (used to start the count from 1 again incase multiple ol tags are present in the page). I used the name itemCounter, but you may name it as you please