1.

Why Was The Decision Made To Make Padding Apply Outside Of The Width Of A 'box', Rather Than Inside, Which Would Seem To Make More Sense?

Answer»

It makes sense in some situations, but not in others. For example, when a child ELEMENT is set to width: 100%, I don't think it should cover the padding of its parent. The box-sizing property in CSS3 ADDRESSES this issue. Ideally, the issue should have been addressed EARLIER, though.

It makes sense in some situations, but not in others. For example, when a child element is set to width: 100%, I don't think it should cover the padding of its parent. The box-sizing property in CSS3 addresses this issue. Ideally, the issue should have been addressed earlier, though.



Discussion

No Comment Found