floats-020.xht (1309B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Left floated elements and text wrapping</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 7 <meta name="assert" content="Block box is generated and floated to left and content flows on right side starting at the top." /> 8 <style type="text/css"> 9 div 10 { 11 width: 2.25in; 12 } 13 #span1 14 { 15 background-color: blue; 16 float: left; 17 height: 1in; 18 width: 1in; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if the words "Filler Text" start above, flow down the right side of, and then wrap underneath the blue box.</p> 24 <div> 25 <span>Filler Text Filler Text Filler Text </span> 26 <span id="span1"></span> 27 <span>Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</span> 28 </div> 29 </body> 30 </html>