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 .explanation img { height: 1.2em; vertical-align: text-bottom
; }
8 .test div { margin: 1em; padding: 0.5em; background: navy
; color: blue
; }
9 .test img { width: 10em; }
10 .test img.left { float: left
; }
11 .test img.right { float: right
; }
13 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visuren.html#float-position" title=
"9.5.1 Positioning the float: the 'float' property">
16 <p class=
"explanation">In the following test, the purple square
17 should be on the left (⇦
<img alt=
"" src=
"support/square-purple.png">), and the teal square on the right (
<img alt=
"" src=
"support/square-teal.png">⇨) of the blue
21 <img alt=
"FAIL: You need image support." src=
"support/square-purple.png" class=
"left">
22 <img alt=
"FAIL: You need image support." src=
"support/square-teal.png" class=
"right">
23 Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle.
24 Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle. Blue rectangle.