tags:

views:

423

answers:

2

Hello,

I'm going to create mobile version of website...

What width should I choose for design? I know that every device have it's own screen width and it's really difficult to fit all devices...

I'm really confused (pretty new to mobile websites world), please help.

Thank you.

+1  A: 

For this sort of question, I can highly recommend reading the MobiForge developers' guide. Lots of useful advice in there, including how to pick the compromises that inevitably result from mobile development.

skaffman
Really, thank you. From your link I've found great link with recommendations http://www.w3.org/TR/mobile-bp/
Kirzilla
The MobiForge guide requires registration to download and is already outdated, as it doesn't address the high resolution and high ppi screens of modern cellphones (320x480 or 480x320 on iPhone, 800x480 / 480x800 on latest Android phones).
MaxVT
Of course it's outdated, these things are out of date the minute they're written. The basics of the advice, though, are sound.
skaffman
+2  A: 

Hi -

Your approach will depend on how much effort you want to (or can) put into this and what range of mobile users you want to target. For minimal effort, simply use 100% as KennyTM points out and expect your website to be browsed on screen widths from 128px to 480px . With this approach, you'll also need to avoid 'advanced' xhtml directives such as css and divs (and javascript) because most mobile browsers cannot handle some aspects of these. Plan to use tables to manage layout.

For a more advanced approach, you can use an open source project called WURFL (http://wurfl.sourceforge.net/) which is a database of mobile browsers and their capabilities (screen width, support for div, css, images etc...). It has a jsp tag library called WNG where you write once and the tag lib will render the most appropriate html to match the user's device. I believe there is also a PHP library for this.

Rgds, Kevin.

Kevin
Thank you for link to great project.
Kirzilla