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: padding-right</title>
5 <meta name="flags" content="ahem">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding-right">
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 { padding-right: 2em; text-align: right; }
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 yellow; border-width: 0 2em 0 7em; }
22 .control .aa { border-color: red teal red red; border-width: 0 1em 0 0; }
23 .control .b { border-color: red yellow red aqua; border-width: 0 2em 0 5em; }
24 .control .bb { border-color: red aqua red teal; border-width: 0 2em 0 1em; }
25
26 </style>
27 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" title="8.4 Padding properties: 'padding-top', 'padding-right', 'padding-bottom', 'padding-left', and 'padding'">
28 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property">
29 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-properties" title="8.5 Border properties">
30 </head>
31 <body>
32 <p class="criteria">The following two diagrams should look identical.</p>
33 <div class="test">
34 <ul class="test">
35 <li>-</li>
36 <li class="test">-</li>
37 <li>-</li>
38 </ul>
39 </div>
40 <div class="control">
41 <div class="a"><div class="aa"></div></div>
42 <div class="b"><div class="bb"></div></div>
43 <div class="a"><div class="aa"></div></div>
44 </div>
45 </body>
46 </html>