multicol-gap-decorations-002.html (1282B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted with column-wrap and a spanner. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="multicol-gap-decorations-002-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 .container { 14 border: 2px solid rgb(96 139 168); 15 width: 200px; 16 height: 200px; 17 column-height: 60px; 18 column-gap: 10px; 19 row-gap: 10px; 20 column-rule-width: 10px; 21 column-rule-style: solid; 22 column-rule-color: blue; 23 row-rule-width: 10px; 24 row-rule-style: solid; 25 row-rule-color: gold; 26 column-wrap: wrap; 27 column-width: 60px; 28 column-count: 3; 29 column-fill: auto; 30 } 31 32 p { 33 background: rgb(96 139 168 / 0.2); 34 height: 60px; 35 margin: 0px; 36 } 37 38 h2 { 39 column-span: all; 40 background-color: cyan; 41 color: #fff; 42 margin: 0px; 43 opacity: 0.5; 44 height: 18px; 45 } 46 </style> 47 48 <div class="container"> 49 <p></p> 50 <p></p> 51 <h2></h2> 52 53 <p></p> 54 <p></p> 55 <p></p> 56 <p></p> 57 <p></p> 58 <p></p> 59 </div>