c5509-padn-l-000

padding-left

WeasyPrint

This browser

Flags
ahem, image

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-left</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding-left">
 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: 106px; color: blue; }
12    img { vertical-align: bottom; }
13    .zero {padding-left: 0; text-align: center; background-color: navy;}
14    .one {padding-left: 0.5in; text-align: left; background-color: navy;}
15    .two {padding-left: 48px; text-align: left; background-color: navy;}
16    .three {padding-left: 4.8em; text-align: left; background-color: navy;}
17    .four {padding-left: 45.3%; text-align: left; background-color: navy;}
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   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property">
22  </head>
23  <body>
24   <p>The five bars below should be identical.</p>
25   <div>
26    <p class="zero">
27     x
28    </p>
29    <p class="one">
30     x
31    </p>
32    <p class="two">
33     x
34    </p>
35    <p class="three">
36     x
37    </p>
38    <p class="four">
39     x
40    </p>
41   </div>
42  </body>
43 </html>