c5502-mrgn-r-002

margin-right

WeasyPrint

This browser

Flags
image, scroll, should

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: margin-right</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-right">
 6   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 7   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 8   <meta name="flags" content="image scroll should">
 9   <style type="text/css">
10    html { margin: 0; padding: 0; }
11    body { margin: 0; padding: 0; }
12    .five { margin-right: -2em; padding-right: 2em; color: navy;
13            background: url(support/swatch-green.png) no-repeat right; }
14   </style>
15   <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'">
16  </head>
17  <body>
18   <p class="five">Test passes if you can scroll to the right and see a green square.</p>
19  </body>
20 </html>