flex-direction-column.html (1230B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Flexible Box Test: flex-direction proprety - column</title> 5 <link rel="author" title="haosdent" href="mailto:haosdent@gmail.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property"> 7 <link rel="match" href="reference/flex-direction-column-ref.html"> 8 <meta name="assert" content="Statement describing what the test case is asserting"> 9 <style type="text/css"> 10 /* Positioned container allows for the self-describing statement to still 11 be visible in the case of failure */ 12 .container { 13 position: relative; 14 display: flex; 15 flex-direction: column; 16 background: red; 17 margin: 1em 0; 18 border: 1px solid black; 19 } 20 span { 21 display: inline-block; 22 background: green; 23 color: white; 24 margin: 1em; 25 width: 8em; 26 } 27 </style> 28 </head> 29 <body> 30 <p>The test passed if you see all the cells are arraged vertically.</p> 31 <div class="container"> 32 <span>first</span> 33 <span>second</span> 34 <span>third</span> 35 <span>forth</span> 36 </div> 37 </body> 38 </html>