c414-flt-fit-004

Stacking Mixed Floats Part III

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: Stacking Mixed Floats Part III</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#floating-elements">
 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 { color: navy; }
10    div { margin: 1em; width: 20em; }
11    div p { margin: 0.25em; border: solid blue; padding: 0.25em; width: 7em; background: navy; color: white; }
12    div p.left { float: left; }
13    div p.right { float: right; text-align: right; }
14   </style>
15   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
16  </head>
17  <body>
18   <p>The blue boxes below should be in numeric order and form a "B".
19   (Boxes labelled "A" should be in the first column; boxes labelled
20   "B" should be in the second; arrows indicate the correct
21   alignment.)</p>
22   <div>
23    <p class="left"> ⇦ A 1 </p>
24    <p class="left"> ⇦ B 2 </p>
25    <p class="left"> ⇦ A 3 </p>
26    <p class="right"> B 4 ⇨ </p>
27    <p class="left"> ⇦ A 5 </p>
28    <p class="right"> B 6 ⇨ </p>
29    <p class="left"> ⇦ A 7 </p>
30    <p class="left"> ⇦ B 8 </p>
31    <p class="left"> ⇦ A 9 </p>
32    <p class="right"> B 10 ⇨ </p>
33    <p class="left"> ⇦ A 11 </p>
34    <p class="right"> B 12 ⇨ </p>
35    <p class="left"> ⇦ A 13 </p>
36    <p class="left"> ⇦ B 14 </p>
37   </div>
38  </body>
39 </html>