multicol-gap-decorations-012.html (1346B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted with 2px width and rule-break none. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="multicol-gap-decorations-012-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: 2px; 21 column-rule-style: solid; 22 column-rule-color: blue; 23 row-rule-width: 2px; 24 row-rule-style: solid; 25 row-rule-color: gold; 26 row-rule-break: none; 27 column-rule-break: none; 28 column-wrap: wrap; 29 column-width: 60px; 30 column-count: 3; 31 column-fill: auto; 32 } 33 34 p { 35 background: rgb(96 139 168 / 0.2); 36 height: 60px; 37 margin: 0px; 38 } 39 40 h2 { 41 column-span: all; 42 background-color: cyan; 43 color: #fff; 44 margin: 0px; 45 opacity: 0.5; 46 height: 18px; 47 } 48 </style> 49 <div class="container"> 50 <p></p> 51 <p></p> 52 <h2></h2> 53 54 <p></p> 55 <p></p> 56 <p></p> 57 <p></p> 58 <p></p> 59 <p></p> 60 </div>