I'm trying to write a mobile site for college using CSS queries, but when I try to configure Nexus 5 using:
@media only screen and (min-width : 20em)
(Remember 20em = 320px), it doesnβt work and instead fills the page about 90% along the X and Y axis.
I am using Viewport:
<meta content="width=device-width, user-scalable=no" name="viewport">
I was thinking of writing a media query based on the pixel ratio, but could not find answers through Google regarding the N5 ratio.
Any help would be greatly appreciated.
thanks
source share