c414-flt-fit-003

Stacking Mixed Floats Part II

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 II</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
19   backwards "D". (Boxes labelled "A" should be in the first column;
20   boxes labelled "B" should be in the second; arrows indicate the
21   correct alignment.)</p>
22   <div>
23    <p class="right"> B 2 ⇨ </p>
24    <p class="right"> A 1 ⇨ </p>
25    <p class="right"> B 4 ⇨ </p>
26    <p class="left"> ⇦ A 3 </p>
27    <p class="right"> B 6 ⇨ </p>
28    <p class="left"> ⇦ A 5 </p>
29    <p class="left"> ⇦ A 7 </p>
30    <p class="right"> B 8 ⇨ </p>
31    <p class="right"> B 10 ⇨ </p>
32    <p class="right"> A 9 ⇨ </p>
33   </div>
34  </body>
35 </html>