tor-browser

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

grid-gap-004-ref.html (862B)


      1 <!DOCTYPE HTML>
      2 <html><head>
      3  <meta charset="utf-8">
      4  <title>Reference: nested subgrid</title>
      5  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      6  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
      7 <style>
      8 html,body {
      9  color:black; background-color:white; font:24px/1 Ahem; padding:0; margin:0;
     10 }
     11 
     12 .grid {
     13  display:inline-grid;
     14  grid:100px auto/100px auto;
     15  gap:20px;
     16  border:3px solid;
     17  background:yellow;
     18 }
     19 span { background:cyan; }
     20 span:nth-child(2n+1) { background:grey; }
     21 </style>
     22 </head>
     23 <body>
     24 
     25 <div class="grid">
     26  <div style="display:grid; grid: 100px 1em / 100px 1em; gap:60px; grid-area:span 2/span 2">
     27    <div style="display:grid; grid: 60px 1em / 100px; gap:100px; grid-row:span 2">
     28      <span>a</span><span>b</span>
     29    </div>
     30    <span style="grid-area:2/2">c</span>
     31  </div>
     32 </div>
     33 
     34 </body>
     35 </html>