flex-gap-decorations-006.html (1245B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted in vertical-lr and center aligned. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-006-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 background-color: rgb(96 139 168 / 0.2); 15 } 16 17 #flexbox { 18 border: 2px solid rgb(96 139 168); 19 border-width: 2px; 20 display: flex; 21 column-gap: 10px; 22 column-rule-style: solid; 23 column-rule-width: 10px; 24 column-rule-color: red; 25 row-gap: 30px; 26 row-rule-style: solid; 27 row-rule-width: 30px; 28 row-rule-color: blue; 29 height: 300px; 30 width: 300px; 31 flex-wrap: wrap; 32 align-content: center; 33 writing-mode: vertical-lr; 34 } 35 36 .items { 37 width: 70px; 38 height: 70px; 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">Four</div> 47 <div class="items">Five</div> 48 <div class="items">Six</div> 49 </div>