According to the WC3 specification:
-
The bottom margin of an in-flow block box with a ‘height’ of ‘auto’ collapses with its last in-flow block-level child’s bottom margin, if:
-
the box has no bottom padding, and
-
the box has no bottom border, and
-
the child’s bottom margin neither collapses with a top margin that has clearance, nor (if the box’s min-height is non-zero) with the box’s top margin.
-
Could someone explain what the last paragraph implies with an example please?
Zytonox is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.