Fizz Buzz in CSS 06.12.2025 - 23:34 Susam Pal shows how to solve Fizz Buzz in CSS: li { counter-increment: n } li:not(:nth-child(5n))::before { content: counter(n) } li:nth-child(3n)::before { content: "Fizz" } li:nth-child(5n)::after { content: "Buzz" } (via)