CSS property: -webkit-margin-top-collapse
Description
Specifies the behavior of an element’s top margin if it is adjacent to an element with a margin. Elements can maintain their respective margins or share a single margin between them.
This property allows you to emulate the behavior of some browsers in quirks mode where table cell margins are collapsed into the borders of vertically adjacent cells.
Syntax
-webkit-margin-top-collapse: collapse | discard | separate;
Values
- collapse
Two adjacent margins are collapsed into a single margin.
- discard
The element’s margin is discarded if it is adjacent to another element with a margin.
- separate
Two adjacent margins remain separate.