Well guys, I made a side-nav with some content and I would like to make a scrollbar visible when the mouse is on top, but I would also like to hide it when the mouse is outside this side-nav.
Well guys, I made a side-nav with some content and I would like to make a scrollbar visible when the mouse is on top, but I would also like to hide it when the mouse is outside this side-nav.
Create a css file with a class with the name of your side-nav
, or if it is a class, this code is already correct.
.side-nav{
overflow-y: hidden;
}
.side-nav:hover{
overflow-y: auto;
}