Scroll bar not hidden in Internet Explorer

Asked

Viewed 490 times

6

I’m creating a site where I use various elements div page size, and links in the top menu that directs to these div, making a page scrolling effect every click.

My problem is that in Internet Explorer, the scroll bar does not disappear, even if I use overflow:hidden in the , body or div leading.

EXAMPLE

Notes: I don’t know why but in Jsfiddle the code didn’t work 100%.

  • 3

    I can’t reproduce the problem you describe, can you put an image here too? As for jsfiddle, jQuery version 1.10 has problems with jsfiddle, I also switched to no wrap for the job switchPage not out of scope/Scope: http://jsfiddle.net/Zk5g3/3/

  • 2

    As reported by @Sergio, the problem is not noticeable enough to receive assertive responses. A screenshot of the question itself will allow users to correctly view the problem. It is always good also to add in the question the minimum code necessary to reproduce the problem.

  • the following screen: http://imageshack.com/a/img833/2678/1tqg.png

3 answers

2

Try to use:

#div {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

or else:

$("#div").css("overflow","hidden");

Maybe jQuery can make it work in IE. If the div is taking the whole screen, try to make some pixels smaller.

Edit: It can be this way too:

* {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}
  • in all browsers is working normally, the detail is that the bottom scrollbox does not want to hide. I will try with these solutions, who knows...

2

When I had this problem in IE I did it this way:

.divOverflowHidden{
  display: inline-block;
  position: relative;
}

.divFilhos {
  position: absolute;
}

worked for me, I no longer have this link more was the OS in English .

  • 1

    You could include an explanation?

1


I managed to solve the problem, the fact is that when I had tested the overflow in the elements, I ended up not testing the same for the tag html.

When I inserted the declaration overflow:hidden on the tag html, the problem has been solved:

html{
    overflow: hidden;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.