tor-browser

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

grid-lanes-item-placement-002.html (1164B)


      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>CSS Grid Test: Grid Lanes layout using `grid-column/row`</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <link rel="help" href="https://drafts.csswg.org/css-grid-3">
     11  <link rel="match" href="grid-lanes-item-placement-002-ref.html">
     12  <style>
     13    html,body {
     14      color:black; background-color:white; font:25px/1 monospace; padding:0; margin:0;
     15    }
     16 
     17    grid {
     18      display: inline-grid-lanes;
     19      gap: 10px 20px;
     20      grid-auto-columns: 80px;
     21      color: #444;
     22      border: 1px solid;
     23      padding: 2px;
     24      flow-tolerance: 0px;
     25    }
     26 
     27    item {
     28      background-color: #444;
     29      color: #fff;
     30      padding: 20px;
     31      margin: 3px;
     32      border: 5px solid blue;
     33    }
     34  </style>
     35 </head>
     36 <body>
     37 
     38 <grid>
     39  <item style="grid-column:1/span 4;">1</item>
     40  <item>2</item>
     41  <item style="grid-column:foo 2; grid-row:span 2">3</item>
     42  <item style="grid-column:span 3">4</item>
     43  <item>5</item>
     44  <item>6</item>
     45 </grid>
     46 
     47 </body>
     48 </html>