Prepending & appending

generate

Properties to generate content before and after an element.

  • content
  • counter-reset
  • counter-increment

content

:before and :after

Use the content attribute to add text to the pseudo-selectors :before and :after
css, style, generate, content

counter-reset

Declare a CSS counter

Declare a CSS counter, for use in a "content" property value, and set or reset its value to 0.
css, style, generate, counter-reset

counter-increment

counter++

Add 1 to a CSS counter that is declared elsewhere.
css, style, generate, counter-increment
0

style > generate Prepending & appending

🔗 🔎