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

#193395
spz1st
Participant

So no. In the impossible but hypothetical circumstance where the element would have no parent, margin would not apply. So it’s not an inherent part of the element. Not sure how you’d imagine margin if it were – some inset displacement on itself?

As I said before that it depends on how you define the element. If an element were define as an area to display something, then margin would certainly a part of the element. The element can have margin, border, padding and/or content per se, all optional.