Re:Solving FizzBuzz with CSS
by Sivart13 on Monday May 07, 2012 @04:33PM
(#3940845)
I think your answer is a lot more readable, though. I have to squint at jontro's version for a while before determining that it'll actually product the string "fizzbuzz".
div:nth-child(3n):after { content: ""; }
div:nth-child(3n):before { content: "fizz"; }
div:nth-child(5n):after { content: "buzz"; }