flex-gap-decorations-007.html (981B)
1 <!DOCTYPE html> 2 <title> 3 CSS Gap Decorations: flex column and row gaps are painted align-items. 4 </title> 5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/"> 6 <link rel="match" href="flex-gap-decorations-007-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 width: 170px; 26 flex-wrap: wrap; 27 align-items: flex-end; 28 } 29 30 .items { 31 width: 50px; 32 } 33 34 #three { 35 height: 40px; 36 } 37 </style> 38 39 <div id="flexbox"> 40 <div class="items">One</div> 41 <div class="items">Two</div> 42 <div class="items" id="three">Three</div> 43 </div>