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 img { background: red; color: yellow; }
8 .control { padding: 1em; }
9 .control img { width: 10em; height: 1em; display: block; }
10 .control img.right { margin-left: 5em; }
11 .test { width: 15em; margin: 1em; }
12 .test div { margin: 0; padding: 0; background: red; }
13 .test img { width: 10em; height: 1em; }
14 .test img.left { float: left; }
15 .test img.right { float: right;}
17 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
20 <p>The two patterns below should be identical, with no red present.</p>
22 <img alt="FAIL: You need image support for this test." src="support/square-teal.png" class="left">
23 <img alt="FAIL: You need image support for this test." src="support/square-purple.png" class="right">
27 <img alt="FAIL: You need image support for this test." src="support/square-teal.png" class="left">
28 <img alt="FAIL: You need image support for this test." src="support/square-purple.png" class="right">