I want to hide my scrollbar, so i gave the body of my site overflow:hidden;
Now I want to have my menubar fixed on the top of my page, with position: fixed;
But when I put my menubar on fixed I can't scroll my whole page anymore with my scrollwheel.
Who knows an answer?
body {
width: 100%;
height: 100%;
overflow: hidden;
}
This is working, but when i put a position: fixed;
on my menu, i can't scroll anymore.
.menu {
position: fixed;
width: 100%;
height: 50px;
}
I hope you understand my question.
position: fixed;
. Turning it on or off on your site does not make a difference for the scrolling on your site.overflow: hidden;
is what disables the scrolling. Things seem to work fine for me when I disable that and set the menu toposition: fixed;
. – Stealingoverflow
is set tohidden
. – Stealing