Pages

Numéroter des sections

HTML



<article>
   <section> ... </section>
   <section>
 ... </section>
 ...
</article>

CSS

article{
   counter-reset: sections;
}
section{
   counter-increment: sections;
}

section:before{
   content: ' Section ' counter(sections) ' - ';
}

code