gap-004-ltr.html (940B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: gap - intrinsic horizontal</title> 4 <link rel="author" title="Adam Argyle" href="mailto:argyle@google.com"> 5 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#gutters"> 6 <link rel="help" href="https://www.w3.org/TR/css-align-3/#column-row-gap"> 7 <link rel="help" href="https://www.w3.org/TR/css-align-3/#gap-legacy"> 8 <link rel="match" href="gap-004-ltr-ref.html"> 9 <meta name="assert" content="The 'gap' property enables putting space exclusively between items"> 10 <style> 11 section { 12 background-color: green; 13 block-size: 100px; 14 display: inline-flex; 15 gap: 20px; 16 } 17 section > div{ 18 background-color: grey; 19 color: white; 20 } 21 </style> 22 <body> 23 <p>Test passes if there are <strong> green lines between boxes</strong>.</p> 24 <section> 25 <div>Black Panther</div> 26 <div>Wonder Woman</div> 27 <div>Storm</div> 28 <div>Flash</div> 29 </section> 30 </body>