Archive
This post is archived and may contain outdated information. It has been set to 'noindex' and should stop showing up in search results.
How to Define Website Width on Mobile
Apr 17, 2012Web DevelopmentComments (1)
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.
Comments (1)
Add a Comment
No comments yet