tor-browser

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

row-align-items-center-001.html (1109B)


      1 <!DOCTYPE html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>CSS Grid Lanes Test: Centered alignment in grid axis</title>
      5 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment">
      7 <link rel="match" href="row-align-items-center-001-ref.html">
      8 <style>
      9 .grid-lanes {
     10    display: grid-lanes;
     11    grid-lanes-direction: row;
     12    background: gray;
     13    flow-tolerance: 0;
     14    grid-template-rows: repeat(3, 100px);
     15    width: 300px;
     16    align-items: center;
     17 }
     18 </style>
     19 <body>
     20  <p>Test that using align-items centers each item to the grid-axis track it is on.</p>
     21  <div class="grid-lanes">
     22    <div style="width: 50px; height: 50px; background-color: lightblue;"></div>
     23    <div style="width: 100px; height: 15px; background-color: lightsalmon;"></div>
     24    <div style="width: 25px; height: 25px; background-color: plum;"></div>
     25    <div style="background-color: lightgreen; width: 60px; height: 60px;"></div>
     26    <div style="background-color: lightpink; height: 80px; width: 200px; grid-row: span 2;"></div>
     27  </div>
     28 </body>
     29 </html>