floats-110.xht (2354B)
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: CSS Floats: Float Sizing</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/010.xml" type="application/xhtml+xml"/> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/010.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 9 10 <meta name="flags" content="interact" /> 11 <style type="text/css"> 12 .float { float: left; } 13 .float div { margin: 0; border: solid; padding: 0.5em; margin: 0.5em; } 14 </style> 15 </head> 16 <body> 17 18 <p> Make your window an inch or two bigger than than the width of 19 one float. All floats should be the same size. This document should 20 be pixel-perfect identical to <a href="008.xml">this one</a> and <a 21 href="009.xml">this one</a> at all window sizes. Try resizing the 22 window so that floats wrap in one or two columns. </p> 23 24 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 25 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 26 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 27 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 28 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 29 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 30 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 31 <div class="float"> <div> this is a float this is a float this is a float this is a float this is a float this is a float this is a float </div> </div> 32 33 </body> 34 </html>