c5525-fltwrap-000.xht (1347B)
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: float</title> 5 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#float"/> 6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 8 <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-09 --> 9 10 <style type="text/css"><![CDATA[ 11 p { margin: 0; padding: 0; font-size: 3em; } 12 .eight {float: left; width: 25%; 13 background-color: #000080; color: white; 14 padding: 0; margin: 0} 15 .nine {float: right; width: 25%; 16 background-color: teal; color: white; 17 padding: 0; margin: 0} 18 ]]></style> 19 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/> 20 </head> 21 <body> 22 <div class="eight"> 23 <p> 24 ⇦ This blue box should be on the left. 25 </p> 26 </div> 27 <div class="nine"> 28 <p> 29 This teal box should be on the right. ⇨ 30 </p> 31 </div> 32 <p> 33 This text should be in between a blue box on the ⇦left and a teal box on the right⇨. 34 </p> 35 </body> 36 </html>