Media queries not behaving as expected on Android
I think you need to do a device resolution detection in your media query along the lines of
@media (-webkit-min-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(min--moz-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5) {
/* high resolution styles */
}
Check David Calhoun's excellent article on mobile best practices.
Why are my CSS3 media queries not working on mobile devices?
All three of these were helpful tips, but it looks like I needed to add a meta tag:
<meta content="width=device-width, initial-scale=1" name="viewport" />
Now it seems to work in both Android (2.2) and iPhone all right...
Related Topics
How to Load External Webpage in Webview
Permission Is Only Granted to System App
Apply a Theme to an Activity in Android
Build and Install Unsigned APK on Device Without the Development Server
Eclipse Error "Adb Server Didn't Ack, Failed to Start Daemon"
Get and Parse CSV File in Android
Cannot Get Folderid That I Just Created on Google Drive
What Should I Use Android Accountmanager For
How to Make a Scroll Listener for Webview in Android
Android: Can't Replace One Fragment with Another
What Kind of Font Files Do I Need for Modern Browsers, Android and iOS
Transitive Dependencies for Local Aar Library
How to Create Edittext with Rounded Corners
Transfer Data Between iOS and Android via Bluetooth
How to Send an Email with a File Attachment in Android