Question

Problem

Css media queries are not working well in Smartphones and Phablets, but are working quite well in emulators. The problem is that the media queries are miss matching. for example my phone screen size is 320px but it applying 720px css.

Maybe

What I thing the problem arise due to absence of "(min-device-pixel-ratio : 1.5)". but i have no idea what is it and how to use it..

The Website

Hava look at the website | AtDrive.com

    @media only screen and (min-width: 480px) and (max-width: 619px)
    @media only screen and (min-width: 320px) and (max-width: 479px)
    @media only screen and (min-width: 250px) and (max-width: 319px)
    @media only screen and (max-width: 249px)
Was it helpful?

Solution 2

Have a look some media queries

http://mediaqueri.es/

OTHER TIPS

This is meta tag to your page.

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top