c5507-padn-r-000.xht (1895B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: padding-right</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#padding-right"/> 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 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-29 --> 10 <link rel="match" href="c5507-padn-r-000-ref.xht" /> 11 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 body { color: navy; } 15 div { font: 10px/1 Ahem; width: 106px; color: blue; } 16 img { vertical-align: bottom; } 17 .zero {padding-right: 0; text-align: center; background-color: navy;} 18 .one {padding-right: 0.5in; text-align: right; background-color: navy;} 19 .two {padding-right: 48px; text-align: right; background-color: navy;} 20 .three {padding-right: 4.8em; text-align: right; background-color: navy;} 21 .four {padding-right: 45.3%; text-align: right; background-color: navy;} 22 ]]></style> 23 <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'"/> 24 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property"/> 25 </head> 26 <body> 27 <p>The five bars below should be identical.</p> 28 <div> 29 <p class="zero"> 30 x 31 </p> 32 <p class="one"> 33 x 34 </p> 35 <p class="two"> 36 x 37 </p> 38 <p class="three"> 39 x 40 </p> 41 <p class="four"> 42 x 43 </p> 44 </div> 45 </body> 46 </html>