tor-browser

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

grid-gap-larger-001-ref.html (1546B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html><head>
      7  <meta charset="utf-8">
      8  <title>Reference: subgrid grid-gap:20px</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <style>
     11 html,body {
     12  color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0;
     13 }
     14 
     15  .wrapper {
     16    display: grid;
     17    gap: 0;
     18    grid-template-columns: 150px 100px 150px 100px;
     19    grid-template-rows: repeat(3,auto);
     20    background-color: #fff;
     21    color: #444;
     22  }
     23 
     24  .box {
     25    background-color: #444;
     26    color: #fff;
     27    padding: 20px;
     28  }
     29 
     30  .box .box {
     31    background-color: #ccc;
     32    color: #444;
     33  }
     34 
     35  .a {
     36    grid-column: 1 / 3;
     37  }
     38 
     39  .b {
     40    grid-column: 4 ;
     41  }
     42 
     43  .c {
     44    grid-column: 1;
     45    grid-row: 2 / 4;
     46  }
     47 
     48  .box .f { background-color: purple; }
     49  .box .i { background-color: blue; }
     50  .box .e { background-color: yellow; }
     51  .a { background-color: grey; }
     52  .c { background-color: black; }
     53  .b { background-color: black; }
     54 
     55  .d {
     56    grid-column: 2 / 5;
     57    grid-row: 2 / 4;
     58    display: grid;
     59    gap: 20px;
     60    grid: auto / 70px 130px 70px;
     61  }
     62 
     63  </style>
     64 </head>
     65 <body>
     66 
     67 <div class="wrapper">
     68  <div class="box a">A</div>
     69  <div class="box b">B</div>
     70  <div class="box c">C</div>
     71  <div class="box d">
     72    <div class="box e">E</div>
     73    <div class="box f">F</div>
     74    <div class="box g">G</div>
     75    <div class="box h">H</div>
     76    <div class="box i">I</div>
     77  </div>
     78 </div>
     79 
     80 </body>
     81 </html>