blob: b8e8ea0d374d3e9692e8e82cec6b4f4a28bb374a [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
backwards &quot;D". (Boxes labelled "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="right"> B 2 ⇨ </p>
<p class="right"> A 1 ⇨ </p>
<p class="right"> B 4 ⇨ </p>
<p class="left"> ⇦ A 3 </p>
<p class="right"> B 6 ⇨ </p>
<p class="left"> ⇦ A 5 </p>
<p class="left"> ⇦ A 7 </p>
<p class="right"> B 8 ⇨ </p>
<p class="right"> B 10 ⇨ </p>
<p class="right"> A 9 ⇨ </p>
</div>
</body>
</html>