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

#193396
Shikkediel
Participant

And it’s justly defined as not being a part of the element nor is it actually being displayed or clickable. Your approach would make margin superfluous altogether.

You can’t say – be 100% width, add empty space but still be 100% width anyway. Use CSS calc in your example. No JavaScript needed.