JSFiddle - React, Tailwind, and code Playground
HTML
<div class='wrapper'>
<div class='inner-wrapper'>
<div class='content-wrapper'></div>
</div>
</div>
CSS
.wrapper{
overflow-x:hidden;
height:200px;
width:200px;
overflow-y:scroll;
position:relative;
background:red;
}
.inner-wrapper{
position:absolute;
left:10px;
right:10px;
top:5px;
bottom:5px;
background:yellow;
}
.content-wrapper{
position:absolute;
left:15px;
top:10px;
height:300px;
width:350px;
background:green;
}