flex-align-content-start-ref.html (759B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Flexible Box Test: align-content property - flex-start</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 span { 16 height: 2em; 17 display: inline-block; 18 background: green; 19 color: white; 20 margin: 1em; 21 width: 8em; 22 float: left; 23 } 24 </style> 25 </head> 26 <body> 27 <p>The test passed if you see a 2*2 table and all the cells are at the top of the container.</p> 28 <div class="container"> 29 <span>first</span> 30 <span>second</span> 31 <span>third</span> 32 <span>forth</span> 33 </div> 34 </body> 35 </html>