tor-browser

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

grid-lanes-item-placement-004.html (1186B)


      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-004-ref.html">
     12  <style>
     13 html,body {
     14  color:black; background-color:white; font:15px/1 monospace; padding:0; margin:0;
     15 }
     16 
     17 grid {
     18  display: inline-grid-lanes;
     19  gap: 1px 2px;
     20  grid-template-columns: repeat(4,20px);
     21  color: #444;
     22  border: 1px solid;
     23  padding: 2px;
     24 }
     25 
     26 item {
     27  background-color: #444;
     28  color: #fff;
     29 }
     30 </style>
     31 </head>
     32 <body>
     33 
     34 <grid>
     35  <item style="grid-column:2/span 2">1</item>
     36  <item>2</item>
     37  <item>3</item>
     38  <item style="grid-column:3/span 2">4</item>
     39  <item>5</item>
     40  <item>6</item>
     41 </grid>
     42 
     43 <div style="direction:rtl">
     44 <grid>
     45  <item style="grid-column:2/span 2">1</item>
     46  <item>2</item>
     47  <item>3</item>
     48  <item style="grid-column:3/span 2">4</item>
     49  <item>5</item>
     50  <item>6</item>
     51 </grid>
     52 </div>
     53 
     54 </body>
     55 </html>