tor-browser

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

flexbox-column-row-gap-004-ref.html (1485B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0
      5 -->
      6 <html>
      7 <head>
      8  <title>Reference: Testing percentage gap resolution in flex containers</title>
      9  <link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
     10  <meta charset="utf-8">
     11  <style>
     12    .flexContainer {
     13      display: flex;
     14      border: 2px solid black;
     15      column-gap: 10px;
     16      align-content: start;
     17      justify-content: start;
     18      margin-top: 20px;
     19    }
     20    .item {
     21      border: 1px solid blue;
     22      background: yellow;
     23      width: 48px;
     24      height: 48px;
     25      flex: none;
     26    }
     27    .vertLR {
     28      writing-mode: vertical-lr;
     29    }
     30    .rowWrap {
     31      flex-flow: row wrap;
     32    }
     33    .colWrap {
     34      flex-flow: column wrap;
     35    }
     36    .w50 {
     37      width: 50px;
     38    }
     39    .h100 {
     40      height: 100px;
     41    }
     42    .w100 {
     43      width: 100px;
     44    }
     45    .noWrap {
     46      flex-wrap: nowrap;
     47    }
     48  </style>
     49 </head>
     50 <body>
     51  <div class="flexContainer rowWrap w50 h100">
     52    <div class="item"></div>
     53    <div class="item"></div>
     54  </div>
     55  <div class="flexContainer colWrap w50 h100 noWrap">
     56    <div class="item"></div>
     57    <div class="item"></div>
     58  </div>
     59  <div class="flexContainer vertLR rowWrap h100 w100">
     60    <div class="item"></div>
     61    <div class="item"></div>
     62  </div>
     63  <div class="flexContainer vertLR colWrap w100 noWrap">
     64    <div class="item"></div>
     65    <div class="item"></div>
     66  </div>
     67 </body>
     68 </html>