Live data from Hacker News

* { box-sizing: border-box } FTW

paulirish.com

1–10 of 90 posts

Re: * { box-sizing: border-box } FTW

#2
Incredible. I wish someone had told me this a few years ago, would have saved me a ton of grief. Jeremy Keith said it best in the comments: "box-sizing: border-box is the bee's knees."

Re: * { box-sizing: border-box } FTW

#4
post #2

Incredible. I wish someone had told me this a few years ago, would have saved me a ton of grief. Jeremy Keith said it best in the comments: "box-sizing: border-box is the bee's knees."

The way I have been getting around this until the last year or so was just double wrapping divs. Setting a wrapper to have the width you want with 0 margin and padding, and then assigning the padding and margin you want to the inner div does essentially the same thing

Re: * { box-sizing: border-box } FTW

#8

As it's been said in the comments, it's amazing that after years of lobbying IE to change its box model to match W3C, we realize that maybe IE's model made more sense after all.

People were lobbying for IE to change in order to make it consistent with the rest of the browsers, not necessarily because it was worse.
Post reply on HN