floats-clear-multicol-balancing-000-ref.html (904B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> 2 <title>CSS Float Test Reference: Test the clear position after the floating elements breaking across multi-columns</title> 3 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 5 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 6 7 <style type="text/css"> 8 .multicol { 9 margin: 1em; 10 border: solid silver; 11 width: 300px; 12 column-width: 100px; 13 column-gap: 0; 14 height: 100px; 15 } 16 17 .container { 18 border: 15px aqua; 19 border-style: none solid; 20 height: 250px; 21 } 22 .clear { 23 border-bottom: 5px solid orange; 24 background: red; 25 } 26 </style> 27 28 <p>The orange line should be in the third column 29 (immediately after the end of the aqua lines). 30 31 <div class="multicol"> 32 <div class="container"> 33 </div> 34 <div class="clear"> 35 </div> 36 </div>