c5525-fltinln-000

float

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: float</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#float">
 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 { border: solid black; font: 15px/1 Ahem; width: 6em; margin: 1em; color: green; }
11    span { float: left; font-size: 200%; width: 1.5em; }
12    .a { background: red url(support/css1test5525ce-1.png) no-repeat; }
13    .b { background: red url(support/css1test5525ce-2.png) no-repeat; }
14    .b span { background-color: green; }
15   </style>
16   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
17  </head>
18  <body>
19   <p> There should be two boxes of green below. </p>
20   <div class="a">
21    <span>X</span> x x xx x x
22   </div>
23   <div class="b">
24    <span>X</span> x x xx x x
25   </div>
26  </body>
27 </html>