![Firefox logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2020-04-14-08-36-13-8dda6f.png)
How can I hide scrollbars in a web page?
Hello everybody, I was wondering if there's any way to hide both scrollbars in a DIV which would overflow.
I can achieve this in Chrome using the following:
- -webkit-scrollbar {
width: 0px; /* remove scrollbar space */ background: transparent; /* optional: just make scrollbar invisible */
}
I need to do the same in Firefox but I don't know how to achieve the same result. I'm pretty sure there must be a way but don't know how. Could you please help?
Thank you Marco
Hello everybody,
I was wondering if there's any way to hide both scrollbars in a DIV which would overflow.
I can achieve this in Chrome using the following:
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space */
background: transparent; /* optional: just make scrollbar invisible */
}
I need to do the same in Firefox but I don't know how to achieve the same result. I'm pretty sure there must be a way but don't know how. Could you please help?
Thank you
Marco
Wszystkie odpowiedzi (1)
Use the following css:
overflow-x: hidden;