In my final school project, I have implemented a custom scrollbar with divs that have a border radius of 15px. However, when I add the custom scrollbar with the same border radius, it overlaps the div and does not look as visually appealing as I would like.
https://i.sstatic.net/cJ5xW.png
Is there a way to position the scrollbar inside the div so that its edge is not visible?
Here is a snippet of the CSS code:
#ruv_results, #stod2_results,#stod2bio_results, #stod3_results{
text-align:center;
}
.ruv_title_css, .stod2_title_css,.stod2bio_title_css, .stod3_title_css{
font-size:20px;
color:#ffffff;
border:1px solid #000000;
border-radius:15px;
margin-top:25px;
width:450px;
height:550px;
display:inline-block;
vertical-align:top;
box-shadow: 0 0 20px #000;
background:#5e5e5e;
box-shadow: inset 0 0 20px #000000;
padding-right:4px;
padding-left:4px;
margin-bottom:10px;
margin-right:6px;
margin-left:6px;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 15px;
height:90%;
}
::-webkit-scrollbar-thumb {
border-radius: 15px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}