c5503-imrgn-b-000

margin-bottom

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: margin-bottom</title>
 5   <meta name="flags" content="ahem">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-bottom">
 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    .test { background-color: yellow; color: orange; margin: 1em 0; width: 10em; font: 16px/1 Ahem; }
11    .one { margin-bottom: 25px; background-color: lime; }
12    .two { margin-bottom: -10px; background-color: lime; }
13    img.b { border: 16px yellow; border-style: solid none; }
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>The three diagrams below should be identical:</p>
19   <p class="test"> xxx xxx <span class="one">xxx xxx</span> xxx xxx </p>
20   <p class="test"> xxx xxx <span class="two">xxx xxx</span> xxx xxx </p>
21   <div>
22      <img src="support/swatch-orange.png" alt="" height="48" width="48"><img src="support/swatch-lime.png" alt="" height="16" width="16" class="b"><img src="support/swatch-orange.png" alt="" height="48" width="48"><img src="support/swatch-yellow.png" alt="" height="48" width="48">
23   </div>
24  </body>
25 </html>