multicol-span-float-002-ref.html (833B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Reference: Test floats in a multi-column container with column-span</title> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 7 <link rel="stylesheet" href="/fonts/ahem.css"> 8 9 <style> 10 article { 11 width: 300px; 12 font: 1.25em/1 Ahem; 13 } 14 .float-left { 15 float: left; 16 color: black; 17 } 18 .float-right { 19 float: right; 20 color: navy; 21 } 22 .column-span { 23 clear: both; 24 color: pink; 25 } 26 </style> 27 28 <article> 29 <div class="float-left">black</div> 30 <div class="float-right">navvy</div> 31 32 <div class="column-span">Pink</div> 33 34 <div class="float-left">black</div> 35 <div class="float-right">navyy</div> 36 </article> 37 </html>