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
"B
".
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="left
"> ⇦ A 7 </p>
27 <p class="left
"> ⇦ B 8 </p>
28 <p class="left
"> ⇦ A 9 </p>
29 <p class="right
"> B 10 ⇨ </p>
30 <p class="left
"> ⇦ A 11 </p>
31 <p class="right
"> B 12 ⇨ </p>
32 <p class="left
"> ⇦ A 13 </p>
33 <p class="left
"> ⇦ B 14 </p>