blob: 17e61414c4c043d3ebfd395b8c23ccaea11a9a1d [file] [log] [blame]
ap9cd074c2006-01-05 20:48:53 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
thatcherffd46e02005-10-25 00:42:22 +00002<html>
3 <head>
4 <title>CSS 2.1 Test Suite: Floating Elements</title>
5 <style type="text/css">
6 p { color: navy; }
7 div { margin: 1em; width: 20em; }
8 div p { margin: 0.25em; border: solid blue; padding: 0.25em; width: 7em; background: navy; color: white; }
9 div p.left { float: left; }
10 div p.right { float: right; text-align: right; }
11 </style>
darinec375482007-01-06 01:36:24 +000012 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
thatcherffd46e02005-10-25 00:42:22 +000013 </head>
14 <body>
15 <p>The blue boxes below should be in numeric order and form a &quot;D".
16 (Boxes labelled &quot;A" should be in the first column; boxes labelled
17 &quot;B" should be in the second; arrows indicate the correct
18 alignment.)</p>
19 <div>
20 <p class="left"> ⇦ A 1 </p>
21 <p class="left"> ⇦ B 2 </p>
22 <p class="left"> ⇦ A 3 </p>
23 <p class="right"> B 4 ⇨ </p>
24 <p class="left"> ⇦ A 5 </p>
25 <p class="right"> B 6 ⇨ </p>
26 <p class="right"> B 8 ⇨ </p>
27 <p class="left"> ⇦ A 7 </p>
28 <p class="left"> ⇦ A 9 </p>
29 <p class="left"> ⇦ B 10 </p>
30 </div>
31 </body>
32</html>