1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: Margin Collapsing: in flow (height, control) - not really margin collapsing</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/056.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">
8 <style type="text/css">
9 table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
10 td { padding: 0; width: 1em; background: red; }
11
12 .a .container { height: 1em; background: red; }
13 .a .sized { height: 3em; margin: 0; background: aqua; }
14 .a .after { height: 1em; margin: 0 0 1em 0; background: yellow; }
15
16 .b .a { border-top: solid aqua 1em; }
17 .b .b { border-top: solid yellow 1em; }
18 .b .c { border-top: solid aqua 1em; }
19
20 </style>
21 </head>
22 <body>
23 <p>The pattern below should be a stack of horizontal bars with no red.</p>
24 <table>
25 <tr>
26 <td class="a">
27 <div class="container">
28 <div class="sized"></div>
29 </div>
30 <div class="after"></div>
31 </td>
32 <td class="b">
33 <div class="a"></div>
34 <div class="b"></div>
35 <div class="c"></div>
36 </td>
37 </tr>
38 </table>
39 <p>See also <a href="019.html">test 019</a>, <a href="020.html">test 020</a>.</p>
40
41
42 </body>
43 </html>