Overflow hidden does not work on mobile devices on the body

I have some jQuery that sets the overflow: hide in html module and modal open. Works great on all desktop browsers.

However, this does not work for mobile devices. From what I read, overflow: hidden is somehow ignored by mobile browsers when it is in the body tag for some reason.

I read that wrapping your content in a div and setting the overflow: hidden is the solution, but not for me.

Any other ideas? Does anyone else have this problem?

+3


source to share


2 answers


add position:relative;

with help overflow: hidden;

and see if it works.



-1


source


try it



html, body {
  overflow:hidden;
}

      

-2


source







All Articles