Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created November 5, 2014 22:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/fc467f130d46f3cbde88 to your computer and use it in GitHub Desktop.
Save lonekorean/fc467f130d46f3cbde88 to your computer and use it in GitHub Desktop.
CSS counters, selection
body {
counter-reset: characters;
}
input:checked {
counter-increment: characters;
}
.total::after {
content: counter(characters);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment