* { box-sizing: border-box } FTW
paulirish.com
* { box-sizing: border-box } FTW
1–10 of 90 posts
Re: * { box-sizing: border-box } FTW
#2Incredible. 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
#3I didn't read the article, but love the mouse effects outside of the content area :D
Re: * { box-sizing: border-box } FTW
#4Incredible. 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
#5As 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.
Re: * { box-sizing: border-box } FTW
#6Will this work with older browsers? Where can I expect support for this?
Re: * { box-sizing: border-box } FTW
#7Will this work with older browsers? Where can I expect support for this?
The article explains that in full
(everying apart from <=ie7)
Re: * { box-sizing: border-box } FTW
#8As 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.
Re: * { box-sizing: border-box } FTW
#9The W3C box model spec forms a set of consistent rules that make sense. It's not the spec that's wrong. Just because it doesn't fit with your original intuition doesn't make it wrong.
Re: * { box-sizing: border-box } FTW
#10Paul is there an answer to this:
http://stackoverflow.com/questions/8421533/how-to-obtain-ctr...
You'll know, so I am asking it here. Or is it even a right question in the first place?