I've tried all methods for vanilla HTML, JS and CSS but it don't seem to work and when it does its not responsive for instance when I reduce the screen it hides but if its Maximized it shows up
Please is there away to solve this issue in material-ui and reactjs
is there a way to make it compatible with various browsers too?
This worked for me, i created an external CSS file just like plain HTML and CSS and then linked it to the react file. It's also cross platform. . parentDiv{ width: 100%; height: 100%; overflow: hidden; position: relative; } .
You can apply it by placing the overflow-y:scroll in the id growth inside the style tag. Notice the scroll bar on the right side of the div .
Removes scroll bar (by setting overflow: hidden on body), and preserves the scroll bar "gap". Read - it just makes scroll bar invisible.
In 2021:
Add in App.css, and import App.css into App.js
::-webkit-scrollbar {
display: none;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With