floats-145

Bottom margins on floats

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: Bottom margins on floats</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/045.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
 8   <style type="text/css">
 9    div {
10      float: left;
11      background: green;
12    }
13    span { 
14      float: left;
15      background: white;
16      margin: 0 0 1em 0;
17    }
18   </style>
19  </head>
20  <body>
21   <div>
22    <span>There should be a green bar below, and no red anywhere.</span>
23    <!-- (note: the "no red anywhere" clause is just for consistency with other tests, this test has no red. -->
24   </div>
25  </body>
26 </html>