I want the vertical scrollbar for my div to be invisible, but still allow vertical scrolling.
- I've tried using - overflow-y: hiddenbut that disables scrolling.
- I've tried webkit - element::-webkit-scrollbarbut that affects horizontal scrollbars too.
I would have thought that webkit's :vertical state would allow me to do it but it doesn't do anything. See codepen: (https://codepen.io/numberjak/pen/MWgOMqd)
Other questions look at BOTH scrollbars, I just care about ONE scrollbar.
<div class="scroll"><div class="large-content"/></div>
.scroll {
  overflow: auto;
  max-width: 20rem;
  max-height: 20rem;
  background-color: black;
}
.scroll::-webkit-scrollbar:vertical {
  display: none;
}
.large-content {
  min-width: 100rem;
  min-height: 100rem;
  background-color: red;
}
 
     
    