grid-gap-decorations-002.html (926B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: grid column gaps are painted with solid styling. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="../agnostic/gap-decorations-001-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 height: 110px; 15 width: 110px; 16 17 display: grid; 18 grid-template-columns: repeat(2, 1fr); 19 20 column-gap: 10px; 21 row-gap: 10px; 22 23 column-rule-color: pink; 24 column-rule-style: solid; 25 column-rule-width: 10px; 26 27 row-rule-color: green; 28 row-rule-style: solid; 29 row-rule-width: 10px; 30 } 31 32 .grid-item { 33 background: skyblue; 34 } 35 </style> 36 <div class="grid-container"> 37 <div class="grid-item"></div> 38 <div class="grid-item"></div> 39 <div class="grid-item"></div> 40 <div class="grid-item"></div> 41 </div>