1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: Floating Elements</title>
5 <style type="text/css">
7 div { margin: 1em; width: 20em; }
8 div p { margin: 0.25em; border: solid blue; padding: 0.25em; width: 7em; background: navy; color: white; }
9 div p.left { float: left; }
10 div p.right { float: right; text-align: right; }
12 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
15 <p>The blue boxes below should be in numeric order and form a "D".
16 (Boxes labelled "A" should be in the first column; boxes labelled
17 "B" should be in the second; arrows indicate the correct
20 <p class="left"> ⇦ A 1 </p>
21 <p class="left"> ⇦ B 2 </p>
22 <p class="left"> ⇦ A 3 </p>
23 <p class="right"> B 4 ⇨ </p>
24 <p class="left"> ⇦ A 5 </p>
25 <p class="right"> B 6 ⇨ </p>
26 <p class="right"> B 8 ⇨ </p>
27 <p class="left"> ⇦ A 7 </p>
28 <p class="left"> ⇦ A 9 </p>
29 <p class="left"> ⇦ B 10 </p>