c5505-mrgn-003

margin

WeasyPrint

This browser

Flags
ahem, image

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</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin">
 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: 1em/1 Ahem; margin: 1em; }
11    .test { width: 6em; padding: 1em 1em 0; border: solid; }
12    .test p { margin: -1em; color: orange; background: yellow; }
13    .control { width: 8em; background: red; border: solid; }
14    .control .a { width: 4em; height: 1em; vertical-align: bottom; }
15    .control .b { width: 4em; height: 1em; vertical-align: bottom; }
16   </style>
17   <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'">
18   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" title="10.2 Content width: the 'width' property">
19  </head>
20  <body>
21   <p>The next two bars should be identical:</p>
22   <!-- This test is too complicated. -->
23   <div class="test"> <p> TEST </p> </div>
24   <div class="control">
25      <img src="support/swatch-orange.png" alt="" class="a"><img src="support/swatch-yellow.png" alt="" class="b">
26   </div>
27  </body>
28 </html>