blob: 17e61414c4c043d3ebfd395b8c23ccaea11a9a1d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: Floating Elements</title>
<style type="text/css">
p { color: navy; }
div { margin: 1em; width: 20em; }
div p { margin: 0.25em; border: solid blue; padding: 0.25em; width: 7em; background: navy; color: white; }
div p.left { float: left; }
div p.right { float: right; text-align: right; }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
</head>
<body>
<p>The blue boxes below should be in numeric order and form a &quot;D".
(Boxes labelled &quot;A" should be in the first column; boxes labelled
&quot;B" should be in the second; arrows indicate the correct
alignment.)</p>
<div>
<p class="left"> ⇦ A 1 </p>
<p class="left"> ⇦ B 2 </p>
<p class="left"> ⇦ A 3 </p>
<p class="right"> B 4 ⇨ </p>
<p class="left"> ⇦ A 5 </p>
<p class="right"> B 6 ⇨ </p>
<p class="right"> B 8 ⇨ </p>
<p class="left"> ⇦ A 7 </p>
<p class="left"> ⇦ A 9 </p>
<p class="left"> ⇦ B 10 </p>
</div>
</body>
</html>