Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#193148
spz1st
Participant

I certainly agree that different people have different views on the matter and I’ve given mine. ;-) But I do hope that there’ll be a new css type to have margins included in width/height. In so many occasions that I wished margins were part of width/height. That would make it much much easier to achieve certain layouts. In many cases it’s impossible to achieve a precise layout with css styling and I had to do with a compromise (such as accepting scrollbars where there were no need for them at all because a margin pushed the total width or height beyond the window’s size) or resort to javascript to achieve a precise layout. All those problems would go away if I had a way to have margins included in width/height.