Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css counter

<style>
    body {
        counter-reset: ctr;
    }

    div.fruit::before {
        counter-increment: ctr;
        content: counter(ctr) ".) ";
    }
</style>

<div class="fruit">Apple</div>
<div class="fruit">Banana</div>
<div class="fruit">Orange</div>
Source by # #
 
PREVIOUS NEXT
Tagged: #css #counter
ADD COMMENT
Topic
Name
7+3 =