multicol-gap-decorations-020.html (1224B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Multicolumn gap decorations painted in container with two spanners 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-020-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-gap: 10px; 18 row-gap: 10px; 19 column-rule-width: 10px; 20 column-rule-style: solid; 21 column-rule-color: blue; 22 column-rule-break: none; 23 column-rule-inset: 0; 24 row-rule-width: 10px; 25 row-rule-style: solid; 26 row-rule-color: gold; 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: 50px; 35 margin: 0px; 36 } 37 38 h2 { 39 column-span: all; 40 background-color: #4d4e53; 41 color: #fff; 42 margin: 0px; 43 opacity: 0.5; 44 height: 28px; 45 } 46 47 </style> 48 49 <body> 50 <div id="container"> 51 <p></p> 52 <p></p> 53 <h2></h2> 54 55 <p></p> 56 <p></p> 57 <p></p> 58 <h2></h2> 59 <p></p> 60 <p></p> 61 <p></p> 62 </div> 63 </body>