Skip to content

Instantly share code, notes, and snippets.

@xiaohutai
Created December 14, 2017 16:51
Show Gist options
  • Save xiaohutai/9cd36098e61b4c8fe981de6388ee8db6 to your computer and use it in GitHub Desktop.
Save xiaohutai/9cd36098e61b4c8fe981de6388ee8db6 to your computer and use it in GitHub Desktop.
li:nth-child(3n)::before { content: 'fizz'; }
li:nth-child(5n)::before { content: 'buzz'; }
li:nth-child(3n):nth-child(5n)::before { content: 'fizz-buzz'; }
li { counter-increment: myCounter; }
li::before { content: counter(myCounter); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment