multicol-gap-decorations-014.html (1175B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted with column-wrap, rule-break-intersection, and fewer 4 columns in last row. 5 </title> 6 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 7 <link rel="match" href="multicol-gap-decorations-014-ref.html"> 8 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 9 <style> 10 body { 11 margin: 0px; 12 } 13 14 .container { 15 border: 2px solid rgb(96 139 168); 16 width: 200px; 17 height: 130px; 18 column-count: 3; 19 column-width: 60px; 20 column-height: 60px; 21 column-gap: 10px; 22 row-gap: 10px; 23 column-rule-width: 10px; 24 column-rule-style: solid; 25 column-rule-color: blue; 26 row-rule-width: 2px; 27 row-rule-style: solid; 28 row-rule-color: gold; 29 column-wrap: wrap; 30 column-fill: auto; 31 column-rule-break: intersection; 32 column-rule-inset: 0; 33 } 34 35 p { 36 background: rgb(96 139 168 / 0.2); 37 height: 60px; 38 margin: 0px; 39 } 40 </style> 41 42 <div class="container"> 43 <p></p> 44 <p></p> 45 <p></p> 46 <p></p> 47 </div>