c5504-mrgn-l-001.xht (2358B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-29 --> 10 <link rel="match" href="c5504-mrgn-l-001-ref.xht" /> 11 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 div.control { margin: 1.25em; } 15 p.criteria { color: navy; } 16 p, ul, li { margin: 0; padding: 0; list-style: none; } 17 18 div.test { border: solid black; width: 10em; background-color: orange; font: 1.25em/1 Ahem; color: teal; margin: 1em; } 19 ul.test, li.test { margin-left: 2em; text-align: left; } 20 li.test { background-color: aqua; } 21 ul.test { background-color: yellow; } 22 23 .control { border: solid; width: 12.5em; background: red; } 24 .control div { border-style: none solid; height: 1.25em; } 25 .control .a { border-color: red yellow red orange; border-width: 0 8.75em 0 2.5em; } 26 .control .aa { border-color: red red red teal; border-width: 0 0 0 1.25em; } 27 .control .b { border-color: red aqua red orange; border-width: 0 6.25em 0 2.5em; } 28 .control .bb { border-color: red teal red yellow; border-width: 0 1.25em 0 2.5em; } 29 30 ]]></style> 31 <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'"/> 32 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties"/> 33 </head> 34 <body> 35 <p class="criteria">The following two diagrams should look identical.</p> 36 <div class="test"> 37 <ul class="test"> 38 <li>-</li> 39 <li class="test">-</li> 40 <li>-</li> 41 </ul> 42 </div> 43 <div class="control"> 44 <div class="a"><div class="aa"></div></div> 45 <div class="b"><div class="bb"></div></div> 46 <div class="a"><div class="aa"></div></div> 47 </div> 48 </body> 49 </html>