title: Make an element scroll inside a grid section
body: <p>I am trying to make a scrollable area inside my div like the image below. I want only the scrollable area to change height on different screen heights and scrolls accordingly.</p>
  <p><a href="https://i.stack.imgur.com/ndyRU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ndyRU.png" alt="Design" /></a></p>
  <p>The problem, is if the scrollable content is big enough to scroll, it will make the whole page scroll. If its small, the footer stays at the bottom correctly.</p>
  <p>Here is a what I have so far</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>* {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
  }
  
  .header {
    height: 30px;
    background-color: lightblue;
  }
  
  .footer {
    height: 30px;
    background-color: lightblue;
  }
  
  .content {
    display: grid;
    grid-template-rows: auto 1fr;
  }
  
  .profile {
    height: 60px;
    background-color: lightpink;
  }
  
  .tabs {
    height: 20px;
    background-color: lightgreen;
  }
  
  .scroller {
    background-color: cyan;
    height: 100%;
    overflow-y: scroll;
  }
  
  .scrollable-content {
    background-color: yellow;
    width: 200px;
    height: 600px;
    margin: 0 auto;
    position: relative;
  }
  
  span {
    bottom: 0;
    left: 0;
    position: absolute;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  
    &lt;div class="header"&gt;Header&lt;/div&gt;
    
    &lt;div class="content"&gt;
      &lt;div class="profile"&gt;Profile&lt;/div&gt;
      &lt;div class="tab-control"&gt;
        &lt;div class="tabs"&gt;Tabs&lt;/div&gt;
        &lt;div class="scroller"&gt;
          &lt;div class="scrollable-content"&gt;scrollable content&lt;span&gt;end&lt;/span&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="footer"&gt;Footer&lt;/div&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Any help is appriciated</p>