flexbox_align-items-stretch-ref.html (630B)
1 <!DOCTYPE html> 2 <title>flexbox | align-items: stretch</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <style> 5 div { 6 background: blue; 7 margin: 1em 0; 8 border: 1px solid black; 9 height: 6em; 10 width: 30em; 11 position: relative; 12 } 13 span { 14 background: yellow; 15 margin: 0; 16 width: 8em; 17 height: 6em; 18 position: absolute; 19 top: 0; 20 left: 1em; 21 display: inline-block; 22 } 23 span:nth-child(2) { 24 background: pink; 25 height: 3em; 26 top: 3em; 27 left: 11em; 28 } 29 span:nth-child(3) { 30 background: lightblue; 31 height: 6em; 32 top: 0; 33 left: 21em; 34 } 35 </style> 36 37 <div> 38 <span>one</span> 39 <span>two</span> 40 <span>three</span> 41 </div>