JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div class="scrollwrapper">
        <div class="scrollArea">
            a<br/>b<br/>c<br/>d<br/>a<br/>b<br/>c<br/>d<br/>
            a<br/>b<br/>c<br/>d<br/>a<br/>b<br/>c<br/>d
        </div>
    </div>
<div class="footer">This has content</div>
</div>

CSS

.container {
    height: 100px;
    border: 1px solid black;
    width: 100%;
    display: table;
}
.scrollwrapper, .footer {
    display: table-row;
}
.scrollArea {
    height: 100%;
    border: 5px solid #bbb;
    overflow-x: hidden;
    overflow-y: scroll;
}
.footer {
    height: 30px;
    width: 100%;
    background: #ccc;
}