17
I’ve been trying to disable one-page scrolling. All I have found are type solutions:
#container{
overflow: hidden;
}
But that’s just occult scroll bar. How I would disable scrolling, even with it being presented on the screen?
Editing
It doesn’t matter if it’s with css or other web technology client-side
, I just want to know if there’s any way.
css. The element that defines the scroll really is the overflow. Remove it from the css to see. and put it to us to see the code
– Israel Zebulon
I don’t have a css ready and I don’t want the solution to be in css. I just want to know if it exists some way to disable the scroll and not hide, which is the case of
overflow
.– Felipe Avelar
Already tried to use the property
position: fixed;
in the container?– Paulo Roberto Rosa
Still, no, like I would with Fixed?
– Felipe Avelar
Add
position: fixed;
to his class#container
and see if you get the result you want– Paulo Roberto Rosa
Worked for a
div
, but I wanted it like it was in the body, only I can’t pin the body.– Felipe Avelar
Because the
<body>
? you happen to be using a<iframe>
?– Paulo Roberto Rosa
No, but because I’m splitting the page into 3 large
div
s, and didn’t want it to be possible to scroll them. You say I should wrap thesediv
s in a container?– Felipe Avelar
In fact, you could apply
position:fixed
for each of them, in this way, it would work.– Paulo Roberto Rosa
I found something that will definitely interest you @Felipeavelar see my answer
– Paulo Roberto Rosa
Now it worked... I discovered in the OS: http://stackoverflow.com/a/6920523/195417 I edited my answer.
– Miguel Angelo