flex-align-content-space-between-ref.html (934B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Flexible Box Test: align-content property - space-between</title> 5 <link rel="author" title="haosdent" href="mailto:haosdent@gmail.com"> 6 <style type="text/css"> 7 .container { 8 position: relative; 9 height: 14em; 10 width: 20em; 11 background: red; 12 margin: 1em; 13 border: 1px solid black; 14 } 15 .first, .second { 16 margin-bottom: 112px; 17 } 18 span { 19 height: 2em; 20 display: inline-block; 21 background: green; 22 color: white; 23 margin: 1em; 24 width: 8em; 25 float: left; 26 } 27 </style> 28 </head> 29 <body> 30 <p>The test passed if you see a 2*2 table and all the cells are spaced equally apart.</p> 31 <div class="container"> 32 <span class="first">first</span> 33 <span class="second">second</span> 34 <span>third</span> 35 <span>forth</span> 36 </div> 37 </body> 38 </html>