Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

CSS Counters

body {
  counter-reset: section;
}

h2::before {
  counter-increment: section;
  content: "Section " counter(section) ": ";
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #CSS #Counters
ADD COMMENT
Topic
Name
2+8 =