c5504-mrgn-l-003

margin-left

WeasyPrint

This browser

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-left</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-left">
 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   <style type="text/css">
 9    .test { width: 10em; margin: 1em 10em; }
10    .test p { margin-left: -5em; color: yellow; background: navy; }
11    .control { width: 15em; margin: 1em 5em; color: yellow; background: navy; }
12   </style>
13   <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'">
14   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" title="10.2 Content width: the 'width' property">
15  </head>
16  <body>
17   <p>The next two bars should be identical:</p>
18   <div class="test"> <p> TEST </p> </div>
19   <div class="control"> TEST </div>
20  </body>
21 </html>