title: CSS Grid Layout - grid-row-gap every 2 Rows
body: <p>Is it possible to have a grid layout with row gaps, but the gap is only every 2 rows?
  Or have a border every 2 rows? </p>
  
  <p>After that I would like to span elements over the grid. Place an extra element as line will destroy the grid, I can't overlap an already filled area.</p>
  
  <p>Example Code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body{
    background-color:gray;
  }
  .grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 5px;
    grid-template-rows: repeat(12,20px);
    border: 1px solid black;
    background-color:lightgray;
  }
  
  .grid &gt; div {
    background: lightblue;
    border: 1px solid cadetblue;
  }
  
  
  
  #element{
    grid-row: 5 / span 3;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>The lightgrey element should have lines/borders every second grid row
  &lt;div class="grid"&gt;
    &lt;div id="element"&gt;Element&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Example Layout:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/nh2cX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nh2cX.png" alt="Example Layout"></a></p>
  
  <p><strong>Span Element over it:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/m1GwV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m1GwV.png" alt="Span Element over it"></a></p>
  
  <p>Other solutions are also welcome.</p>