grid-gap-decorations-005.html (970B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: grid column gaps are painted with double styling and specifed width. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="grid-gap-decorations-005-ref.html"> 7 <link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com"> 8 <style> 9 10 body { 11 margin: 0px; 12 } 13 14 .grid-container { 15 height: 110px; 16 width: 110px; 17 18 display: grid; 19 grid-template-columns: repeat(2, 1fr); 20 21 column-gap: 10px; 22 row-gap: 10px; 23 24 background-color: green; 25 26 column-rule-color: pink; 27 column-rule-style: double; 28 column-rule-width: 5px; 29 30 row-rule-color: pink; 31 row-rule-style: double; 32 row-rule-width: 5px; 33 } 34 35 .grid-item { 36 background: skyblue; 37 } 38 </style> 39 <div class="grid-container"> 40 <div class="grid-item"></div> 41 <div class="grid-item"></div> 42 <div class="grid-item"></div> 43 <div class="grid-item"></div> 44 </div>