multicol-gap-decorations-007.html (1180B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted with nested fragmented multicol. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="multicol-gap-decorations-007-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 #outer { 14 width: 620px; 15 columns: 2; 16 column-fill: auto; 17 gap: 20px; 18 height: 200px; 19 background: yellow; 20 } 21 22 #inner { 23 columns: 3; 24 border: 2px solid; 25 gap: 20px; 26 column-height: 100px; 27 column-rule-style: solid; 28 column-rule-color: blue; 29 column-rule-width: 10px; 30 row-rule-style: solid; 31 row-rule-color: green; 32 row-rule-width: 10px; 33 column-wrap: wrap; 34 background: cyan; 35 } 36 </style> 37 38 <div id="outer"> 39 <div id="inner"> 40 <div style="height:60px; background:hotpink;"></div> 41 <div style="column-span:all; background: grey; opacity: 0.5; height:18px"></div> 42 <div style="height:750px; background:hotpink;"></div> 43 </div> 44 </div>