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