Skip to content

Instantly share code, notes, and snippets.

@omas
Created June 21, 2014 02:15
Show Gist options
  • Save omas/75ca4a1f2da389e3deba to your computer and use it in GitHub Desktop.
Save omas/75ca4a1f2da389e3deba to your computer and use it in GitHub Desktop.
ul>li {
list-style-type: none;
}
ul>li:nth-child(3n):after {
content: "Fizz";
}
ul>li:nth-child(5n):after {
content: "Buzz";
}
ul>li:nth-child(15n):after {
content: "FizzBuzz";
}
ul>li:nth-child(3n), ul>li:nth-child(5n) {
visibility: hidden;
}
ul>li:nth-child(3n):after, ul>li:nth-child(5n):after {
visibility: visible;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment