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 childelement 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 childelement 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