Home › Forums › Other › Some issues about relation between width/height and margin/padding/border › Reply To: Some issues about relation between width/height and margin/padding/border
Right, there’s box-sizing to deal with padding and border. But my point is that the width and height should include margin/padding/border by default. This way it would be much easier to layout elements. It’s a natural way to consider width and height first for each element so they can be fitted into the page nicely, then you set the margin/padding/border individually for each element. If width and height included margin/padding/border, you would be able to set margin/padding/border freely without having to worry about their effect on the overall layout and adjusting width/height every time you change margin/padding/border in order to preserve the original overall layout (currently not always possible to preserve the original overall layout as shown in my demo examples). This is more in accordance with real life experiences. For example, the page size includes margins.