* { Box-sizing: Border-box } FTW

The css box model has been a pain in the ass for me when working on the layout of #lillygram-letters. I have never liked it, but trying to make a print layout I was going crazy.

So i got very exited when I came over this article by Paul Irish: * { Box-sizing: Border-box } FTW. With box-sizing: border-box, padding and border no longer ads to the width and that just feels right!

Legg inn en kommentar