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 image">
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 body { color: navy; }
11 div { font: 10px/1 Ahem; width: 138px; color: orange; }
12 img { vertical-align: bottom; }
13 .zero {padding: 0; border: solid 24px yellow; background-color: red;}
14 .one {padding: 0.25in; background-color: yellow;}
15 .two {padding: 24px; background-color: yellow;}
16 .three {padding: 2.4em; background-color: yellow;}
17 .four {padding: 17.391%; background-color: yellow;}
18 </style>
19 <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'">
20 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" title="4.3.2 Lengths">
21 </head>
22 <body>
23 <p>The five diagrams below should be identical.</p>
24 <div>
25 <p class="zero">
26 <img src="support/swatch-orange.png" alt="" width="10" height="10"><img src="support/swatch-yellow.png" alt="" width="10" height="10"><img src="support/swatch-orange.png" alt="" width="10" height="10"><img src="support/swatch-yellow.png" alt="" width="10" height="10"><img src="support/swatch-orange.png" alt="" width="10" height="10"><img src="support/swatch-yellow.png" alt="" width="10" height="10"><img src="support/swatch-orange.png" alt="" width="10" height="10"><img src="support/swatch-yellow.png" alt="" width="10" height="10"><img src="support/swatch-orange.png" alt="" width="10" height="10">
27 </p>
28 <p class="one">
29 x x x x x
30 </p>
31 <p class="two">
32 x x x x x
33 </p>
34 <p class="three">
35 x x x x x
36 </p>
37 <p class="four">
38 x x x x x
39 </p>
40 </div>
41 </body>
42 </html>