JSFiddle - React, Tailwind, and code Playground
by Erik
HTML
<div class='outer-container'>
<div class='container'>
<div class='overlay'>
<p>You should be able to read this</p>
</div>
</div>
<div class='container'></div>
</div>
CSS
.outer-container {
display: flex;
flex-direction: row;
}
.container {
height: 90vh;
width: 30vw;
margin: 1vh;
box-sizing: border-box;
border: dashed 10px red;
background: blue;
overflow-y: auto;
position: static;
-webkit-overflow-scrolling: touch;
}
.overlay {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0, 255, 0, 0.5);
}
.overlay p {
font-size: 3em;
margin: 2em auto;
text-align: center;
}