1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: margin-right</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-right: 2em; text-align: right; }
12 li.test { background-color: aqua; }
13 ul.test { background-color: yellow; }
15 .control { border: solid; width: 10em; background: red; }
16 .control div { border-style: none solid; height: 1em; }
17 .control .a { border-color: red orange red yellow; border-width: 0 2em 0 7em; }
18 .control .aa { border-color: red teal red red; border-width: 0 1em 0 0; }
19 .control .b { border-color: red orange red aqua; border-width: 0 2em 0 5em; }
20 .control .bb { border-color: red yellow red teal; border-width: 0 2em 0 1em; }
23 <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 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties">
27 <p class="criteria">The following two diagrams should look identical.</p>
31 <li class="test">-</li>
36 <div class="a"><div class="aa"></div></div>
37 <div class="b"><div class="bb"></div></div>
38 <div class="a"><div class="aa"></div></div>