gap-007-ltr-ref.html (785B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: gap - wrap vertical</title> 4 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 5 <style> 6 section { 7 background-color: green; 8 block-size: 100px; 9 inline-size: 200px; 10 display: inline-flex; 11 flex-direction: column; 12 flex-wrap: wrap; 13 line-height: 18px; 14 } 15 section > div{ 16 background-color: grey; 17 color: white; 18 } 19 section > div:nth-child(2) { 20 margin-block: 20px; 21 } 22 section > div:not(:last-of-type) { 23 margin-inline-end: 20px; 24 } 25 </style> 26 <body> 27 <p>Test passes if there are <strong> green lines between boxes</strong>.</p> 28 <section> 29 <div>Black Panther</div> 30 <div>Wonder Woman</div> 31 <div>Storm</div> 32 <div>Flash</div> 33 </section> 34 </body>