1

I have created a responsive template and I have the following problem.

I created a media query for resolutions smaller than 480px on desktops and smaller than 540px for phones. On the desktop it works fine, on the phones it works as expected.

@media only screen and (max-device-width: 540px),
screen and (max-width: 480px) {

so, whenever I open the site on a tablet, I get the desktop version loaded (as expected) but with a zoomed-in result.

If I use the following code, with maximum scale at 0.6

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=0.6">

I get tablet view correctly, but then in phones it's zoomed-out.

I have searched everywhere and tried every combination in order to make this work. From what I realize I want maximum-scale=1 for phones and 0.6 for tablets. How can this be achieved?

Thanks in advance for your time. Hope it can be done.

edit: removed url.

scooterlord
  • 15,124
  • 11
  • 49
  • 68

1 Answers1

1

That's because the maximum-scale is set to 0.6. This means the website is showed at 60%. Try leaving that out or set it to 1.0

Stinodotbe
  • 402
  • 3
  • 10