Can a div's scrollbar be set to a height smaller than the div itself? For example, having a <div>
with the height
set to 400px
and overflow-y:scroll
, then setting the scrollbar's height to 300px
? Creating a gap between the bottom of the scrollbar and the bottom of the <div>
.
Is this achievable using only CSS? If not, could it be done with some simple JS?