| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <title>Margin Collapsing: in flow (height)</title> |
| table { border-spacing: 0; font-size: 50px; border: solid; background: red; } |
| td { padding: 0; width: 1em; } |
| .test .outer { background: orange; } |
| .test .a { background: red; margin: 0; height: auto; } |
| .test .aa { background: yellow; margin: 0 0 1em 0; height: 1em; } |
| .test .b { background: lime; margin: 0; height: 1em; } |
| .control .a { border-top: 1em yellow solid; } |
| .control .b { border-top: 1em orange solid; } |
| .control .c { border-top: 1em lime solid; } |
| <p>The following box should contain exactly three bands, one yellow, one orange, and one lime, with <strong>absolutely no red visible</strong>.</p> |