I've been attempting to implement the techniques outlined in the guides on this site, but I'm encountering difficulty hiding the scroll bar while still maintaining scrolling functionality!
My current approach involves setting the parent as relative and the child as absolute with overflow:hidden
on the parent and overflow-y:scroll
on the child, however, this hasn't yielded the desired results.
Here is my existing code:
parent
{
width: 100%;
padding-left: 30px;
height: 100%;
box-sizing: border-box;
overflow: hidden;
}
child
{
overflow-y: scroll;
}
Despite trying numerous solutions, I am perplexed as to why it's not functioning correctly. Any advice would be greatly appreciated!