multicol-gap-decorations-001.html (1042B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted with column-wrap. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="multicol-gap-decorations-001-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: 130px; 17 column-count: 3; 18 column-width: 60px; 19 column-height: 60px; 20 column-gap: 10px; 21 row-gap: 10px; 22 column-rule-width: 10px; 23 column-rule-style: solid; 24 column-rule-color: blue; 25 row-rule-width: 10px; 26 row-rule-style: solid; 27 row-rule-color: gold; 28 column-wrap: wrap; 29 } 30 31 p { 32 background: rgb(96 139 168 / 0.2); 33 height: 60px; 34 margin: 0px; 35 } 36 </style> 37 38 <div class="container"> 39 <p></p> 40 <p></p> 41 <p></p> 42 <p></p> 43 <p></p> 44 <p></p> 45 </div>