August 29, 20169 yr The content-box and border-box models are very familiar to all of us I would imagine and we can all think of use cases for each. However in the CSS spec there is also the provision for a third model which is the padding-box model. Anyone ever used it or know of a good use case scenario?
August 29, 20169 yr Nope, although there may be an edge case where it might, I just cannot think of one! I've only had to use content-box for form elements, everything else I give border-box to.
August 29, 20169 yr Author The only thing I can envisage is if you had elements with a border on only one or two sides and wanted to manipulate their widths perhaps. Other than that I can't see any real apparent reason for it.
August 29, 20169 yr It's been removed from the specs, no one used it, only one browser ever implemented it. No longer a thing.
August 29, 20169 yr It's been removed from the specs, no one used it, only one browser ever implemented it. No longer a thing. Good to know. Thanks
August 29, 20169 yr Author It's been removed from the specs, no one used it, only one browser ever implemented it. No longer a thing. Thank god for that. It'll stop keeping me up at nights worrying about it.
Create an account or sign in to comment