c5525-fltwrap-000

float

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: float</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#float">
 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    p { margin: 0; padding: 0; font-size: 3em; }
10    .eight {float: left; width: 25%;
11            background-color: #000080; color: white;
12            padding: 0; margin: 0}
13    .nine {float: right; width: 25%;
14           background-color: teal; color: white;
15           padding: 0; margin: 0}
16   </style>
17   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
18  </head>
19  <body>
20   <div class="eight">
21    <p>
22     ⇦ This blue box should be on the left.
23    </p>
24   </div>
25   <div class="nine">
26    <p>
27     This teal box should be on the right. ⇨
28    </p>
29   </div>
30   <p>
31    This text should be in between a blue box on the ⇦left and a teal box on the right⇨.
32   </p>
33  </body>
34 </html>