News for hackers. Stuff that matters.
Re:Tetris and The Power Of CSS by kika on Sunday November 10, 2013 @09:58PM (#6709678)
Am I the only one who clicked the link expecting to see the Tetris in pure CSS?

AskHN: is there a good online resource that actually explains the layout mechanics of the modern browser? Not a comprehensive CSS reference (there're lots of them) but fundamental principles? lmgtfy's welcome.

Re:Tetris and The Power Of CSS by chadwickthebold on Sunday November 10, 2013 @10:33PM (#6709789)
Is something like (https://developer.mozilla.org/en-US/docs/Introduction_to_Lay...) what you were looking for? Or Were you looking more for how the browser reads CSS and sticks that into a formatting context? For the latter, I would suggest visiting https://developer.mozilla.org/en-US/docs/Web/CSS and poking around the key concepts a bit
Re:Tetris and The Power Of CSS by Semaphor on Monday November 11, 2013 @02:57AM (#6710515)
I expected it, which is why it took me a while to actually click it. To quote the author

> Did you think I was actually going to recreate Tetris in CSS? Sorry, no. Nobody needs to do that.

I mean that stuff is usually pretty awesome, but we've had more than enough playful experiements and this was far more valuable and the title is imo a disservice to this.

Re:Tetris and The Power Of CSS by sriharis on Sunday November 10, 2013 @10:38PM (#6709810)
Re:Tetris and The Power Of CSS by jasallen on Sunday November 10, 2013 @11:43PM (#6709990)
Not sure if it's what you had in mind, but I found both his advanced and basic tutorials to be really good (different audiences though, there is no "medium" tutorial to bridge it :-) )

http://learn.shayhowe.com/advanced-html-css/

Re:Tetris and The Power Of CSS by xerophtye on Sunday November 10, 2013 @11:34PM (#6709959)
So did i. You are not alone. Heck even OP knows people would come for that. But still, pretty cool post. My CSS-writing colleague asked me this the other day, wrote the mathematical part of the code for him. though i used the n%3 == 1 method.

Though know that i think of it, i think he ended up using JS for this :/