flexbox_flex-natural-mixed-basis-ref.html (533B)
1 <!DOCTYPE html> 2 <title>flexbox | flex: larger integer, mixed basis</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <style> 5 div { 6 background: blue; 7 height: 8em; 8 width: 35em; 9 } 10 span { 11 background: yellow; 12 width: 10em; 13 height: 8em; 14 display: inline-block; 15 } 16 span:nth-child(1) { 17 width: 5em; 18 } 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><span>two</span><span>three</span><span>four</span> 26 </div>