This shows you the differences between two versions of the page.

Link to this comparison view

ideas:margin-collapsing [2014/12/09 15:48] (current)
Line 1: Line 1:
 +====== Margin Collapse Controls ======
 +  margin-top-collapse:​ auto | nocollapse | collapse | discard;
 +  margin-break:​ auto | keep | discard;
 +margin-*-collapse is the standard "I want to control whether margins collapse"​ rule that people request all the time.  The "​discard"​ value helps with the use-case where the first block in a table-cell throws away its top margin.
 +margin-break is for when elements break across something (page, column, flexbox-line) and you want to keep or discard the relevant margins.
ideas/margin-collapsing.txt · Last modified: 2014/12/09 15:48 (external edit)
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki