multicol-containing-003.html (680B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-multicol/#the-multi-column-model"> 3 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 4 <style> 5 #multicol { 6 columns: 2; 7 width: 100px; 8 height: 100px; 9 column-fill: auto; 10 column-gap: 0px; 11 } 12 .rel { 13 position: relative; 14 } 15 .abs { 16 position: absolute; 17 width: 100px; 18 height: 100px; 19 background: green; 20 top: 0; 21 left: 0; 22 } 23 </style> 24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 25 <div class="rel" id="multicol"> 26 <div style="height:200px; width: 50px; background: red;"></div> 27 <div class="abs"></div> 28 </div>