Simple question - how can I get my web app to display at actual size?

Discussion in 'iOS Programming' started by Chuck, Mar 25, 2009.

  1. Chuck macrumors regular

    Jan 3, 2003
    Hi guys,

    Just wanted to know how to get a web app to display at "actual pixels" on the iPhone. I just designed a page that is the right dimensions for the iPhone screen but when I go there, the iPhone reduces it down really small! There's nothing else on the page except this image that is 318 x 431px.

    Thanks in advance.
  2. jnic macrumors 6502a

    Oct 24, 2008
    <meta name=“viewport” content=“width=320, initial-scale=1.0" />
  3. Chuck thread starter macrumors regular

    Jan 3, 2003
    Hmmm, where do I put that? I just tried it in the <head> and it didn't make any difference (after I added the missing inverted commas from the initial scale value that is).

    [edit: Oh, sorry your code was right. I shouldn't have changed it. THANKS!]

Share This Page