1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: margin</title>
5 <style type="text/css">
6 div.test, div.control { margin: 1em; }
7 p.criteria { color: navy; }
8 p, ul, li { margin: 0; padding: 0; list-style: none; }
10 div.test { border: solid black; width: 10em; background-color: orange; font: 1em/1 Ahem; color: teal; }
11 ul.test, li.test { margin: 1em; }
12 li.test { background-color: aqua; }
13 ul.test { background-color: yellow; }
15 .control { border: solid; width: 10em; background: red; }
16 .control .orange { border: solid 1em orange; background: yellow; }
17 .control .teal { height: 1em; width: 1em; background: teal; }
18 .control .aqua { border: solid 1em yellow; background: aqua; }
21 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'">
24 <p class="criteria">The following two diagrams should look identical.</p>
28 <li class="test">-</li>
34 <div class="teal"></div>
35 <div class="aqua"><div class="teal"></div></div>
36 <div class="teal"></div>