c5510-padn-001

padding

WeasyPrint

This browser

Flags
ahem

Source

 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</title>
 5   <meta name="flags" content="ahem">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding">
 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: 1em; }
16    li.test { background-color: aqua; }
17    ul.test { background-color: yellow; }
18 
19    .control { border: solid; width: 10em; background: red; }
20    .control .yellow { border: solid 1em yellow; background: yellow; }
21    .control .teal { height: 1em; width: 1em; background: teal; }
22    .control .aqua { border: solid 1em aqua; background: aqua; }
23   </style>
24   <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'">
25  </head>
26  <body>
27   <p class="criteria">The following two diagrams should look identical.</p>
28   <div class="test">
29    <ul class="test">
30     <li>-</li>
31     <li class="test">-</li>
32     <li>-</li>
33    </ul>
34   </div>
35   <div class="control">
36    <div class="yellow">
37     <div class="teal"></div>
38     <div class="aqua"><div class="teal"></div></div>
39     <div class="teal"></div>
40    </div>
41   </div>
42  </body>
43 </html>