Note that there are some explanatory texts on larger screens.

plurals
  1. POMedia query not working with all android devices
    text
    copied!<p>I really hope this question has not been answered because I could not find it anywhere... I have a site that uses media queries to present different data if it is a mobile or not. I also have a mobile app with a webview that calls the site. It works on all iOS devices, but only works on some Android devices... Do some android devices not implement media queries in a webview?</p> <p>Here is my CSS Media Queries:</p> <pre><code>@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:50% auto 0; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:10% auto 0; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } @media only screen and (min-device-width : 321px) and (max-device-width : 568px) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:10% auto 0; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } @media only screen and (min-device-width : 569px) and (max-device-width : 767px) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:40% auto 0; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait ) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:40% auto 0; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { #mobileBody { display:inline; } #header, .wrapper, #footer { display: none; } body { background:none; background-color:black; } .mobileLogo { width: 85%; margin:10% auto 0 !important; } .mobileLogo a img { width: 100%; } .mobile_fb_login { width: 50%; margin:10% auto 0; } .mobile_fb_login a img { width: 100%; } } </code></pre> <p>Please help if you can :-)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload