4

Im using overflow:hidden to hide my unglam div in my webpage, it works well in all web browser but not in mobile browser. Anyone can help?

body
{
    margin: auto;
    display:block;
    overflow-x:hidden;
    overflow-y:hidden;
    height:800px;
} 
youaremysunshine
  • 341
  • 6
  • 16
  • 28

3 Answers3

10

Try adding following line in your html

<meta name="viewport" content="width=device-width, height=device-height">

and test on your phone. Maybe this should help.

Pranav Kale
  • 629
  • 1
  • 5
  • 13
2

Add a wrapper inside your body tag and apply the overflow-x: hidden to that wrapper

LolaRoux
  • 21
  • 1
1

Depending on which mobile browser you're using, overflow-x and overflow-y may not be supported. Use overflow: hidden instead to cover all bases and be cross browser compatible.

MattDiamant
  • 8,561
  • 4
  • 37
  • 46
  • 1
    after i change to overflow:hidden, it is still not workable. Im testing it on android. mayb u can hav a look on it. beauty.org.sg – youaremysunshine Aug 16 '13 at 07:52