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