c414-flt-fit-002.xht (1688B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Stacking Mixed Floats Part I</title> 5 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 6 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 7 <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-30 --> 8 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#floating-elements"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/> 10 <link rel="match" href="c414-flt-fit-002-ref.xht" /> 11 12 <style type="text/css"><![CDATA[ 13 div { margin: 1em; width: 20em; } 14 div p { margin: 0.25em; border: solid blue; padding: 0.25em; width: 7em; background: navy; color: white; } 15 div p.left { float: left; } 16 div p.right { float: right; text-align: right; } 17 ]]></style> 18 19 </head> 20 <body> 21 <p>The blue rectangles should be in numeric order and form a "D". 22 (Boxes labelled "A" should be in the first column; boxes labelled 23 "B" should be in the second; arrows indicate the correct 24 alignment.)</p> 25 <div> 26 <p class="left"> ⇦ A 1 </p> 27 <p class="left"> ⇦ B 2 </p> 28 <p class="left"> ⇦ A 3 </p> 29 <p class="right"> B 4 ⇨ </p> 30 <p class="left"> ⇦ A 5 </p> 31 <p class="right"> B 6 ⇨ </p> 32 <p class="right"> B 8 ⇨ </p> 33 <p class="left"> ⇦ A 7 </p> 34 <p class="left"> ⇦ A 9 </p> 35 <p class="left"> ⇦ B 10 </p> 36 </div> 37 </body> 38 </html>