JSFiddle - React, Tailwind, and code Playground

HTML

<section>
    <header>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>
    </header>
    <div class="scroll-box">FIRST LINE
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>doesn't matter
        <br>we have some text here
        <br>a few lines
        <br>LAST LINE
        <br>
    </div>
</section>

CSS

section {
    position: fixed;
    top:0;
    left: 0;
    height: 100%;
    width: 300px;
    background: red;
}
.scroll-box {
    overflow: scroll;
    height: 100%;
    width: 100%;
    background: #eee;
}