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 .test { width: 15em; margin: 1em; padding: 0; background: white
; color: white
; }
8 .test p { margin: 0; padding: 0.01em; }
9 .test p.left { float: left
; }
10 .test p.right { float: right
; width: 14.98em; background: teal
; color: aqua
; text-align: center
; }
12 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visuren.html#floats" title=
"9.5 Floats">
15 <p>The word
"fail
" should not appear below.</p>
17 <p class="left
"> TEST: </p>
18 <p class="right
"> PASS </p>
19 fail fail fail fail fail fail fail fail fail fail
20 fail fail fail fail fail fail fail fail fail fail
21 fail fail fail fail fail fail fail fail fail fail
22 fail fail fail fail fail fail fail fail fail fail
23 fail fail fail fail fail fail fail fail fail fail
25 <!-- this test actually failed in Mozilla once -->