flex-gap-decorations-032.html (1045B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted with orthogonal items. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-032-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 display: flex; 19 column-gap: 10px; 20 column-rule: 10px solid red; 21 row-gap: 30px; 22 row-rule: 30px solid blue; 23 height: 130px; 24 width: 230px; 25 flex-wrap: wrap; 26 align-content: center; 27 } 28 29 .items { 30 width: 70px; 31 height: 50px; 32 writing-mode: vertical-rl; 33 } 34 </style> 35 36 <div id="flexbox"> 37 <div class="items">One</div> 38 <div class="items">Two</div> 39 <div class="items">Three</div> 40 <div class="items">Four</div> 41 <div class="items">Five</div> 42 <div class="items">Six</div> 43 </div>