floats-wrap-top-below-003r-ref.xht (769B)
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"><head> 2 <title>CSS Test: Test for wrapping around floats whose top is below the top of what must wrap around them</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 <style type="text/css"> 6 7 body { width: 400px; border: medium solid; } 8 span { display: inline-block; vertical-align: top; width: 100px; height: 50px; background: aqua; } 9 10 </style> 11 </head> 12 <body> 13 14 <div style="float: right; width: 250px; height: 25px;"></div> 15 <span></span> 16 <span style="margin-top: 25px; margin-left: 250px"></span> 17 18 19 20 </body></html>