floats-wrap-bfc-004-ref.xht (3001B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head> 2 <title>CSS Test: Test for flow around floats (reference)</title> 3 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 </head> 8 <body> 9 10 <div style="width: 300px; height: 20px; background: aqua"> 11 <div style="float:left; background:blue; width: 100px; height: 20px"></div> 12 <div style="float:left; background:silver; width: 100px; height: 6px"></div> 13 <div style="float:left; width: 150px; height: 10px; background: purple"></div> 14 </div> 15 16 <div style="width: 300px; height: 20px; background: aqua"> 17 <div style="float:left; background:blue; width: 100px; height: 20px"></div> 18 <div style="float:right; background:silver; width: 100px; height: 6px"></div> 19 <div style="float:left; width: 150px; height: 10px; background: purple"></div> 20 </div> 21 22 <div style="width: 300px; height: 20px; background: aqua"> 23 <div style="float:right; background:blue; width: 100px; height: 20px"></div> 24 <div style="float:left; background:silver; width: 100px; height: 6px"></div> 25 <div style="float:left; width: 150px; height: 10px; background: purple"></div> 26 </div> 27 28 <div style="width: 300px; height: 20px; background: aqua"> 29 <div style="float:right; background:blue; width: 100px; height: 20px"></div> 30 <div style="float:right; background:silver; width: 100px; height: 6px"></div> 31 <div style="float:left; width: 150px; height: 10px; background: purple"></div> 32 </div> 33 34 <div style="width: 300px; height: 20px; background: aqua"> 35 <div style="float:left; background:blue; width: 100px; height: 20px"></div> 36 <div style="float:left; background:silver; width: 100px; height: 6px"></div> 37 <div style="float:left; width: 100px; height: 10px; background: purple"></div> 38 </div> 39 40 <div style="width: 300px; height: 20px; background: aqua"> 41 <div style="float:left; background:blue; width: 100px; height: 20px"></div> 42 <div style="float:right; background:silver; width: 100px; height: 6px"></div> 43 <div style="float:left; width: 100px; height: 10px; background: purple"></div> 44 </div> 45 46 <div style="width: 300px; height: 20px; background: aqua"> 47 <div style="float:right; background:blue; width: 100px; height: 20px"></div> 48 <div style="float:left; background:silver; width: 100px; height: 6px"></div> 49 <div style="float:left; width: 100px; height: 10px; background: purple"></div> 50 </div> 51 52 <div style="width: 300px; height: 20px; background: aqua"> 53 <div style="float:right; background:blue; width: 100px; height: 20px"></div> 54 <div style="float:right; background:silver; width: 100px; height: 6px"></div> 55 <div style="float:left; width: 100px; height: 10px; background: purple"></div> 56 </div> 57 58 59 60 </body></html>