Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style>
- body{
- counter-reset: n;
- }
- div:before {
- counter-increment: n;
- content: counter(n);
- }
- div:nth-child(3n):before {
- content: "fizz";
- }
- div:nth-child(5n):before {
- content: "buzz";
- }
- div:nth-child(3n):nth-child(5n):before {
- content: "fizzbuzz";
- }
- </style>
- </head>
- <body>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- <div></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement