title: div with 3 rows and scrollable content at the middle
body: <p>I have to do 3 rows div with scrollable content at the middle row.
  Container is absolute position and can't be larger than 100% of the document height.
  Container height depends of rows height, and middle row has dynamic height from x to x px.</p>
  
  <p>Can't use max-height: x vh, bacuse of older browser incompatibility.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>/* main container can't be larger than 100% of the screen */
  .container {
    position: absolute;
    left: 0;
    top: 10px;
    width: 250px;
    background: green;
    max-height: 100%;
  }
  
  /* this needs to be scrollable if dynamic content is to large */
  .middle-row {
    max-height: 90%;
    overflow-y: scroll;
    background: blue;
  }  
  
  /* this always needs to be visible */
  .last-row {
    
  }  
  
  .dummy-large-div {
    height: 5000px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="first-row"&gt;some thing&lt;/div&gt;
    &lt;div class="middle-row"&gt;
      &lt;div class="dummy-large-div"&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="last-row"&gt;
      &lt;button&gt;submit&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Do you have any ideas?</p>