Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overlay scrollbar on firefox

I've got a problem, I have an div, that changes height, but when it has overflow, the scrollbar change it's width, are the any way to make this scrollbar "overlay" the div without changing the width.

On Chrome there is there is:

overflow: overlay;

Although on firefox it does not work. Are there any solution? Doesn't matter if it is javascript, jquery or css.

Thanks.

like image 866
joaomarcuslf Avatar asked Oct 19 '22 08:10

joaomarcuslf


1 Answers

I wouldn't use "overlay" since is it not standard. Instead try a plugin like perfect-scrollbar which reveals the scrollbar on hover.

like image 111
Mottie Avatar answered Nov 03 '22 03:11

Mottie