[Solved] How to use css Counter Increment [closed]


Try giving the specific paragraph a class or id like shown below:

<p class="counterParagraph">This is a paragraph</p>

and editing your css

p.counterParagraph::before{
    content: counter(my-counter) "." counter(subsection) "." ;
    counter-increment: subsection;
    color: red;
    margin-right: 5px;
}

0

solved How to use css Counter Increment [closed]