views:

232

answers:

2

I'm currently working on an intracompany web site which will be viewed on cell phones - at the moment, Palm Treos and iPhones. The Treo has a screen 360x360 so I'm putting all the page info into a 360x360 box. Works fine on the Treo, but when you log in to the site on an iphone, it shows up about 1/2in square on the screen. Is there any way I can, from the server side, make it show up full screen on an iPhone?

+2  A: 

It sounds to me like you might want to make a different CSS version for iPhone browsers. Here's a neat little page on targeting the iPhone browser through HTML and PHP. There's also quite a bit more information on developing websites for the iPhone on that page.

Hope that helps!

Dean Putney
+1 for the info - thank you
dsteele
+2  A: 

In the <head> section of your HTML document, add:

<meta id="viewport" name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">

That should make it appear the correct size on the iPhone!

Ben Gotow
That did it - thanks!
dsteele