1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: padding-top</title>
5 <style type="text/css">
6 td { padding: 0; border: solid black; }
8 .test { font: 12px/1 Ahem; width: 5em; }
9 .zero {padding-top: 0; background-color: orange; color: blue;}
10 .one {padding-top: 0.125in; background-color: yellow; color: aqua;}
11 .two {padding-top: 12px; background-color: lime; color: fuchsia;}
12 .three {padding-top: 1em; background-color: blue; color: orange;}
13 .four {padding-top: 20%; background-color: aqua; color: yellow;}
14 .five {padding-top: -20px; background-color: fuchsia; color: lime;}
16 .control { width: 60px; background: red; }
17 .control .blue { border-top: solid blue 12px; }
18 .control .yellow { border-top: solid yellow 12px; }
19 .control .aqua { border-top: solid aqua 12px; }
20 .control .lime { border-top: solid lime 12px; }
21 .control .fuchsia { border-top: solid fuchsia 12px; }
22 .control .orange { border-top: solid orange 12px; }
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 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" title="4.3.2 Lengths">
28 <p>The next two columns should be identical.</p>
33 <p class="zero"> xxxxx </p>
34 <p class="one"> xxxxx </p>
35 <p class="two"> xxxxx </p>
36 <p class="three"> xxxxx </p>
37 <p class="four"> xxxxx </p>
38 <p class="five"> xxxxx </p>
42 <div class="blue"></div>
43 <div class="yellow"></div>
44 <div class="aqua"></div>
45 <div class="lime"></div>
46 <div class="fuchsia"></div>
47 <div class="blue"></div>
48 <div class="orange"></div>
49 <div class="aqua"></div>
50 <div class="yellow"></div>
51 <div class="lime"></div>