1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: margin-left</title>
5 <meta name="flags" content="ahem">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-left">
7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
9 <style type="text/css">
10 div.test, div.control { margin: 1em; }
11 p.criteria { color: navy; }
12 p, ul, li { margin: 0; padding: 0; list-style: none; }
13
14 div.test { border: solid black; width: 10em; background-color: orange; font: 1em/1 Ahem; color: teal; }
15 ul.test, li.test { margin-left: 2em; text-align: left; }
16 li.test { background-color: aqua; }
17 ul.test { background-color: yellow; }
18
19 .control { border: solid; width: 10em; background: red; }
20 .control div { border-style: none solid; height: 1em; }
21 .control .a { border-color: red yellow red orange; border-width: 0 7em 0 2em; }
22 .control .aa { border-color: red red red teal; border-width: 0 0 0 1em; }
23 .control .b { border-color: red aqua red orange; border-width: 0 5em 0 2em; }
24 .control .bb { border-color: red teal red yellow; border-width: 0 1em 0 2em; }
25
26 </style>
27 <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'">
28 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties">
29 </head>
30 <body>
31 <p class="criteria">The following two diagrams should look identical.</p>
32 <div class="test">
33 <ul class="test">
34 <li>-</li>
35 <li class="test">-</li>
36 <li>-</li>
37 </ul>
38 </div>
39 <div class="control">
40 <div class="a"><div class="aa"></div></div>
41 <div class="b"><div class="bb"></div></div>
42 <div class="a"><div class="aa"></div></div>
43 </div>
44 </body>
45 </html>