The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Borders, Padding & Collapsed Margins
How does a border and padding prevent margins from collapsing from a parent/first-child relationship?
Is it that applying a border to the parent sets a context for the child to add margin? Is it as simple as the border separates the two?
I’m looking for a more CSS technical answer, if any, as to why this is?
Probaly easier to read the spec of you want a technical answer.