JSFiddle - React, Tailwind, and code Playground
HTML
<div id="TableCover">
<div class="overflow" id="canceltable">
<p>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br></p>
</div>
<div class="overflow" id="Deletetable">
<p>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br>test</br></p>
</div>
</div>
CSS
#Scroll1 {
position:relative;
bottom:15px;
height: 305px;
right:-1px;
}
#Scroll2 {
position:relative;
right:-1px;
height: 295px;
}
::-webkit-scrollbar {
width: 17px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background-color:#6f6f6f;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
border-radius: 10px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
background:#4a4a4a;
}
#TableCover {
height:400px;
width:400px;
background:grey;
border:1px solid blue;
}
#canceltable {
position:relative;
max-height:200px;
height:300px;
width:400px;
background:white;
}
#Deletetable {
position:relative;
max-height:200px;
height:300px;
width:400px;
background:black;
color:white;
}
.overflow {
overflow:auto;
}
}