Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css counters

body {
  counter-reset: section;                    /* On initialise le compteur à 0 */
}

h3::before {
  counter-increment: section;                /* On incrémente le compteur section */
  content: "Section " counter(section) " : "; /* On affiche le compteur */
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css #counters
ADD COMMENT
Topic
Name
7+3 =