views:

378

answers:

2

Has anybody made a website theme for the iPhone?

Please let me know any tips or resources.

Here's my theory: How to make a website theme for iPhone

  1. Create a website theme designed for desktop monitors. Try not to make any element larger than 320px (iPhone screen resolution).

  2. Create 2 style sheets. One for desktop monitors and another for iPhone. By default, the desktop version of the style sheet is called. The iPhone style sheet would display items in such a way that they fit inside the 320px resolution.

  3. Create JavaScript file that detects Screen Size. If screen size is less than than 321px, then the style sheet is replaced by the iPhone version style sheet.

+1  A: 

Liquid layouts work well. When you switch from landscape to portrait and back on the iPhone, text reflows. I've used this one.

Nosredna
Great example. I'm trying to make something a bit different though. I would like to use a multi column layout for desktop and single column for iPhone
Have you looked at iUi and jQTouch?
Nosredna
Yes, but I'm looking to apply the theme to an existing CMS, so those seem a little overkill. I can probably borrow some CSS though...
A: 

Check out IUI which provides a very iPhone like UI for your website/application. (Free!)

Examples:

scunliffe
IUI looks awesome, but I'm not sure it will fit my requirements. Also, there is very little documentation. I'm trying to make a theme for an ecommerce website that will display differently on iPhone vs desktop.
no worries just figured if you want a base for the iPhone styles this might help.
scunliffe