tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

flexbox_flex-natural-mixed-basis.html (726B)


      1 <!DOCTYPE html>
      2 <title>flexbox | flex: larger integer, mixed basis</title>
      3 <link rel="author" href="http://opera.com" title="Opera Software">
      4 <link rel="help"
      5 href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property">
      6 <link rel="match" href="flexbox_flex-natural-mixed-basis-ref.html">
      7 <style>
      8 div {
      9 background: blue;
     10 height: 8em;
     11 width: 35em;
     12 
     13 display: flex;
     14 }
     15 span {
     16 background: white;
     17 width: 5em;
     18 
     19 flex: 1 1 auto;
     20 }
     21 span:nth-child(1) {
     22 flex: 1 1 0%;
     23 }
     24 span:nth-child(1) {background: yellow;}
     25 span:nth-child(2) {background: pink;}
     26 span:nth-child(3) {background: lightblue;}
     27 span:nth-child(4) {background: grey;}
     28 </style>
     29 
     30 <div>
     31 <span>one</span>
     32 <span>two</span>
     33 <span>three</span>
     34 <span>four</span>
     35 </div>