flex-gap-decorations-011.html (1329B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted column break intersection and 2px outset. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-011-ref.html"> 7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com"> 8 <style> 9 body { 10 margin: 0px; 11 } 12 13 #flexbox { 14 border: 2px solid rgb(96 139 168); 15 display: flex; 16 column-gap: 10px; 17 row-gap: 10px; 18 row-rule-style: solid; 19 row-rule-color: blue; 20 row-rule-width: 2px; 21 column-rule-style: solid; 22 column-rule-color: red; 23 column-rule-width: 2px; 24 column-rule-break: intersection; 25 column-rule-inset: -2px; 26 width: 170px; 27 flex-wrap: wrap; 28 } 29 30 .items { 31 background-color: rgb(96 139 168 / 0.2); 32 flex-shrink: 1; 33 width: 50px; 34 height: 50px; 35 } 36 37 #four { 38 width: 100px; 39 } 40 </style> 41 42 <div id="flexbox"> 43 <div class="items">One</div> 44 <div class="items">Two</div> 45 <div class="items">Three</div> 46 <div class="items" id="four">Four</div> 47 <div class="items">Five</div> 48 <div class="items">Six</div> 49 <div class="items">Seven</div> 50 <div class="items">Eight</div> 51 </div>