tor-browser

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

flexbox_margin-auto-overflow.html (608B)


      1 <!DOCTYPE html>
      2 <title>flexbox | margin: auto in overflow</title>
      3 <link rel="author" href="http://opera.com" title="Opera Software">
      4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#auto-margins">
      5 <link rel="match" href="flexbox_margin-auto-overflow-ref.html">
      6 <style>
      7 div {
      8 background: blue;
      9 margin: 1em 0;
     10 border: 1px solid black;
     11 height: 8em;
     12 width: 32em;
     13 position: relative;
     14 
     15 display: flex;
     16 }
     17 span {
     18 background: white;
     19 margin: 1em auto;
     20 width: 30em;
     21 display: inline-block;
     22 flex: 0 0 auto;
     23 }
     24 span+span {background: yellow;}
     25 </style>
     26 
     27 <div>
     28 <span>one</span>
     29 <span>two</span>
     30 </div>