How to Define Website Width on Mobile

Apr 17, 2012   Web Development   Nick Vogt   Comments
Please note that this post is over a year old and may contain outdated information.
If your website has a fixed width and you want it to fill the screen, use these three meta tags for good browser coverage (replace 400 with the correct fixed width of your website):

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="400">
<meta name="viewport" content="width=400">

I recommend making a fluid and responsive website, but if you're stuck with fixed width, this should do the trick and prevent the site from being zoomed incorrectly.
Share This Post

Comments (0)

Share This Post
H3XED © Nick Vogt   RSS   Policies   Twitter