gap-002-ltr.html (789B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: gap - vertical</title> 4 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 5 <link rel="help" title="The 'gap' property" href="https://www.w3.org/TR/css-align-3/#gaps"> 6 <link rel="match" href="gap-002-ltr-ref.html"> 7 <meta name="assert" content="The 'gap' property enables putting space exclusively between items"> 8 <style> 9 section { 10 background-color: green; 11 block-size: 200px; 12 display: flex; 13 flex-direction: column; 14 gap: 20px; 15 } 16 section > div{ 17 background-color: grey; 18 flex: 1 1 auto; 19 } 20 </style> 21 <body> 22 <p>Test passes if there is <strong>a green horizontal line between boxes</strong>.</p> 23 <section> 24 <div></div> 25 <div></div> 26 <div></div> 27 </section> 28 </body>