c547-indent-000

text-indent

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: text-indent</title>
 5   <meta name="flags" content="ahem">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#text-indent">
 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 { font: 24px/1 Ahem; width: 18em; color: blue; }
11    .one {text-indent: 0.25in;}
12    .two {text-indent: 0.635cm;}
13    .three {text-indent: 6.35mm;}
14    .four {text-indent: 18pt;}
15    .five {text-indent: 1.5pc;}
16    .six {text-indent: 1em;}
17    .seven {text-indent: 1.25ex;}
18    .eight {text-indent: 24px;}
19   </style>
20   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" title="16.1 Indentation: the 'text-indent' property">
21   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#length-units" title="4.3.2 Lengths">
22  </head>
23  <body>
24   <p>There should be a tall solid unbroken column of blue below.</p>
25   <div class="test">&nbsp;x</div>
26   <div class="one"> x </div>
27   <div class="two"> x </div>
28   <div class="three"> x </div>
29   <div class="four"> x </div>
30   <div class="five"> x </div>
31   <div class="six"> x </div>
32   <div class="seven"> x </div>
33   <div class="eight"> x </div>
34   <div class="test">&nbsp;x</div>
35  </body>
36 </html>