<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html lang="en"> <head> <title>Margin Collapsing: in flow (height, control) - not really margin collapsing</title> <style type="text/css"> table { border-spacing: 0; font-size: 50px; border: solid; background: red; } td { padding: 0; width: 1em; background: red; } .a .container { height: 1em; background: red; } .a .sized { height: 3em; margin: 0; background: aqua; } .a .after { height: 1em; margin: 0 0 1em 0; background: yellow; } .b .a { border-top: solid aqua 1em; } .b .b { border-top: solid yellow 1em; } .b .c { border-top: solid aqua 1em; } </style> </head> <body> <p>There should be no red on this page.</p> <table> <tr> <td class="a"> <div class="container"> <div class="sized"></div> </div> <div class="after"></div> </td> <td class="b"> <div class="a"></div> <div class="b"></div> <div class="c"></div> </td> </tr> </table> <p>See also <a href="019.html#">test 019</a>, <a href="020.html#">test 020</a>.</p> </body> </html>