• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1684
  • Last Modified:

Is there an alternative to using meta name="viewport" when designing webpages for smartphones?


I am building a web site which will be viewed on smartphones eg iphone etc and have been using the

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

tag so the site will zoom in and format correctly. My problem is that the payment gateway im using (Worldpay) have a whote list of tags that can be used and meta name="viewport" is NOT on it and i think most meta name tabs too! To get a tag put on this list takes a long time, so my question is:

Is there an alternative way of doing the same thing?

Frontech Ltd
  • 2
2 Solutions
Check for name="HandheldFriendly" or name="MobileOptimized".
frontechltdAuthor Commented:
Thank you but those meta tabs are blocked too. I have since found out the ALL meta tags are blocked for PCI reasons! So maybe something in css maybe?

Something like this? <link media="only screen and (max-device-width: 480px)"
  rel="stylesheet" type="text/css" href="iphone.css"/>
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now