title: How to get scrolling in a CSS grid?
body: <p>I have a component embedded in a css-grid.</p>
  <p>In stack blitz I have an external grid of 3 rows. The one of the rows has a min-width.  How do I get it to scroll horizontally if the viewport is smaller than the min-width?</p>
  <p>Within the middle row I have a component that itself uses a 2 column grid. The divs in the columns have a min-height.</p>
  <p>What I am looking for is if the viewport is sized so that the entire inner component (red boxes) is not visible, the red box is scrollable.</p>
  <p>here is a stack blitz:</p>
  <p><a href="https://stackblitz.com/edit/angular-q4geyk" rel="noreferrer">https://stackblitz.com/edit/angular-q4geyk</a></p>
  <p>Here is another example:</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>html {
    box-sizing: border-box;
  }
  
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  
  .content {
    display: grid;
    grid-template-rows: 2em 1fr 1px;
    grid-gap: 0.5rem;
    height: 20em;
  }
  
  .my-panel {
    border: 1 green solid;
    background-color: red;
    padding: 0.25rem;
  }
  
  .my-component {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
    padding: 0.25rem;
    height: 100%;
  }
  
  header {
    border: green solid 1px;
    padding: 4px;
  }
  
  main {
    border: blue solid 1px;
    padding: 1rem;
  }
  
  main div {
    border: red solid 1px;
    height: 100%;
  }
  
  footer {
    border-bottom: black solid 1px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="content"&gt;
    &lt;header&gt;
      &lt;div&gt;Component Showcase&lt;/div&gt;
    &lt;/header&gt;
  
    &lt;main&gt;
      &lt;div&gt;
        &lt;section class="my-component"&gt;
          &lt;div class="my-panel"&gt;&amp;nbsp;&lt;/div&gt;
          &lt;div class="my-panel"&gt;&amp;nbsp;&lt;/div&gt;
        &lt;/section&gt;
      &lt;/div&gt;
    &lt;/main&gt;
  
    &lt;footer&gt;&lt;/footer&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>