flexbox_align-items-flexstart-2-ref.html (587B)
1 <!DOCTYPE html> 2 <title>flexbox | align-items: flex-start</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 width: 8em; 16 display: inline-block; 17 position: absolute; 18 top: 0; 19 left: 1em; 20 } 21 span:nth-child(2) { 22 background: pink; 23 height: 3em; 24 left: 11em; 25 } 26 span:nth-child(3) { 27 background: lightblue; 28 height: 4em; 29 left: 21em; 30 } 31 </style> 32 33 <div> 34 <span>one</span> 35 <span>two</span> 36 <span>three</span> 37 </div>