tor-browser

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

grid-lanes-item-placement-002-ref.html (925B)


      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: Grid Lanes layout using `grid-column/row`</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:25px/1 monospace; padding:0; margin:0;
     13 }
     14 
     15 grid {
     16  display: inline-grid;
     17  gap: 10px 20px;
     18  grid-template-columns: repeat(4,80px);
     19  grid-template-rows: auto;
     20  color: #444;
     21  border: 1px solid;
     22  padding: 2px;
     23 }
     24 
     25 item {
     26  background-color: #444;
     27  color: #fff;
     28  padding: 20px;
     29  margin: 3px;
     30  border: 5px solid blue;
     31 }
     32 </style>
     33 </head>
     34 <body>
     35 
     36 <grid>
     37  <item style="grid-column:1/-1">1</item>
     38  <item>2</item>
     39  <x></x>
     40  <item>3</item>
     41  <item>5</item>
     42  <item style="grid-column:1/-2">4</item>
     43  <item>6</item>
     44 </grid>
     45 
     46 </body>
     47 </html>