c5502-mrgn-r-000.xht (1868B)
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: margin-right</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-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="match" href="c5502-mrgn-r-000-ref.xht" /> 10 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 body { color: navy; } 14 div { font: 10px/1 Ahem; width: 200px; color: orange; } 15 img { vertical-align: bottom; } 16 .zero {margin-right: 0; text-align: right; background-color: maroon;} 17 .one {margin-right: 0.5in; text-align: right; background-color: maroon;} 18 .two {margin-right: 48px; text-align: right; background-color: maroon;} 19 .three {margin-right: 4.8em; text-align: right; background-color: maroon;} 20 .four {margin-right: 24%; text-align: right; background-color: maroon;} 21 ]]></style> 22 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'"/> 23 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property"/> 24 </head> 25 <body> 26 <p>The five "matches" below should be identical.</p> 27 <div> 28 <p class="zero"> 29 x<img src="support/swatch-white.png" alt="Image download support must be enabled" height="10" width="48"/> 30 </p> 31 <p class="one"> 32 x 33 </p> 34 <p class="two"> 35 x 36 </p> 37 <p class="three"> 38 x 39 </p> 40 <p class="four"> 41 x 42 </p> 43 </div> 44 </body> 45 </html>