float-no-content-beside-001-ref.html (556B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>CSS Floats — reference</title> 4 <link rel=author title="Jonathan Kew" href="jkew@mozilla.com"> 5 <style> 6 p { width: 10em; border: solid aqua; } 7 span { float: left; width: 5em; height: 5em; border: solid blue; } 8 </style> 9 10 <div>Test passes if all three examples render the same:</div> 11 12 <p><span></span><br>Supercalifragilisticexpialidocious</p> 13 14 <br style="clear:both"> 15 16 <p><span></span><br>Supercalifragilisticexpialidocious</p> 17 18 <br style="clear:both"> 19 20 <p><span></span><br>Supercalifragilisticexpialidocious</p>