flexbox_flex-natural-variable-auto-basis-ref.html (554B)
1 <!DOCTYPE html> 2 <title>flexbox | flex: larger integer, auto basis</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <style> 5 div { 6 border: 1px solid black; 7 height: 8em; 8 width: 32em; 9 } 10 span { 11 width: 7em; 12 height: 8em; 13 float: left; 14 } 15 span:nth-child(2) { 16 width: 11em; 17 } 18 span:nth-child(1) {background: yellow;} 19 span:nth-child(2) {background: pink;} 20 span:nth-child(3) {background: lightblue;} 21 span:nth-child(4) {background: grey;} 22 </style> 23 24 <div> 25 <span>one</span> 26 <span>two</span> 27 <span>three</span> 28 <span>four</span> 29 </div>