grid-gap-decorations-030.html (811B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: Gaps are painted when items overflow container - no row gaps. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-030-ref.html"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 .grid-container { 14 display: grid; 15 grid-gap: 10px; 16 grid-template-columns: 100px 100px 100px; 17 width: 120px; 18 height: 120px; 19 20 column-rule-color: blue; 21 column-rule-style: solid; 22 column-rule-width: 5px; 23 } 24 25 .item { 26 background: gray; 27 opacity: 0.5; 28 } 29 </style> 30 31 <body> 32 <div class="grid-container"> 33 <div class="item"></div> 34 <div class="item"></div> 35 <div class="item"></div> 36 </div> 37 </body>