flexbox_align-content-flexend.html (757B)
1 <!DOCTYPE html> 2 <title>flexbox | align-content: flex-end</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-content-property"> 5 <link rel="match" href="flexbox_align-content-flexend-ref.html"> 6 <style> 7 div { 8 background: blue; 9 margin: 1em 0; 10 border: 1px solid black; 11 height: 6em; 12 width: 20em; 13 14 display: flex; 15 flex-wrap: wrap; 16 align-content: flex-end; 17 } 18 span { 19 background: white; 20 margin: 0 1em; 21 width: 8em; 22 height: 2em; 23 display: inline-block; 24 25 flex: none; 26 } 27 span:nth-child(1) {background: yellow;} 28 span:nth-child(2) {background: pink;} 29 span:nth-child(3) {background: lightblue;} 30 </style> 31 32 <div> 33 <span>one</span> 34 <span>two</span> 35 <span>three</span> 36 </div>