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