Android Stock Browser Not Respecting CSS Overflow

Overflow:hidden not working on mobile browser

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.

Android native browser doesn't update height on overflow auto when adding elements

OK I managed to fix this by forcing the view to repaint whenever I altered the DOM

$('<style></style>').appendTo($(document.body)).remove();

A horrible horrible fix, but it works...

The Android browser is the new IE6.

Overflow-x:hidden doesn't prevent content from overflowing in mobile browsers

Creating a site wrapper div inside the <body> and applying the overflow-x:hidden to the wrapper instead of the <body> or <html> fixed the issue.

It appears that browsers that parse the <meta name="viewport"> tag simply ignore overflow attributes on the html and body tags.

Note: You may also need to add position: relative to the wrapper div.



Related Topics



Leave a reply



Submit