TessavWalstijn
TessavWalstijn

Reputation: 1726

Media query works on chrome but firefox picks up wrong resolution / query

So here is my question on Mozilla support:

So I am testing my website in the Responsive Design-modus and there is no problem with the the CSS. But when I am at my phone the site shows me the CSS of desktop. He zooms in because of the viewport (I think). I do not know if this is the problem.

What I tried with the CSS:

@media screen and (min-width: {PixelNumber}px) { /* CSS stuf */ } 
/*or*/ 
@media only screen and (min-width: {PixelNumber}px) { /* CSS stuf */ }

This is my html meta tag:

<meta name="viewport" property="viewport" content="width-device-width, initial-scale=0.9">

Click here to view my site

On chrome: chrome And on firefox firefox

Upvotes: 0

Views: 620

Answers (1)

cbrst
cbrst

Reputation: 431

width-device-width in your viewport tag should be width=device-width

Upvotes: 2

Related Questions