JSFiddle - React, Tailwind, and code Playground

HTML

<section>
  <header>header</header>
  <div class="article-container">
    <article>
      Long <br>
      Long <br>
      Long <br>
      Long <br>
      Long <br>
      Long <br>
      Long <br>
      Long <br>    
      Long <br>    
      Long <br>    
      Long <br>    
      Long <br>    
      Long <br>    
      Long <br>    
    </article>
  </div>
  <footer>footer</footer>
</section>

CSS

section {
  display: flex;
  flex-direction: column;
  max-height: 200px;
  height: 200px;
  width: 300px;
  border: 2px dashed red;
}

header, footer {
  height: 50px;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
  background: steelblue;
}

.article-container {
  flex: 1 1 auto;
  display: flex;
  position: relative;
  min-height: 0;
}

article {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow: auto;
}