Script Perfect

         Random snips of code and bugs

Designing Websites for Mobile Devices

Posted by Tim On September - 7 - 2009

Since the iPhone many cell phone manufacturers are developing their own version of app stores and creating mobile content to try and attract a larger user base. Blackberry (RIM) has made some drastic changes, until recently their mobile phones came with a bite sized amount of memory that could be used for applications. Now that the iPhone and similar phones are out they have bumped their internal memory way up and added microSD capabilities to try and compete.

What this means for web developers is that you have a large potential to attract a rather neglected group of people. Everyone who has a crackberry, iPhone, or mobile Palm is basically walking around with a mini computer strapped to their belt waiting to find your site. Developing a mobile platform is easier than you may think.


Whats in a name?

One of the great things about designing for mobile devices is that you can use another domain name. The .mobi names are readily available and there are still plenty of good ones remaining. Unlike dot com names you do not have to search for variations or misspellings of your existing site, odds are a name that suits your site is still available.


Screen Sizes

Mobile devices have much smaller screens which means your new site needs to take this into consideration. iPhone users have a screen width of 320 pixels while most blackberry devices are 420px. Designing a site which is 320px in width will be more than effective for both of these platforms and users will not be able to tell the difference.

If you plan on developing for other mobile devices such as flip phones then you will need to try and develop within 128 pixel resolution. So two sites between 320 and 128 will cover the majority of cell phone users.


Page Size and Design Considerations

Since most mobile networks are not up to par with the high speeds of our home connections the overall size of the site will need to be kept relatively small. A logo above 25kb may keep your page from loading quickly on some phones.

The use of flash or embedded media can be hindrance on most mobile browsers as well. Avoid using flash, silverlight, or video. Many phones do not have JavaScript, placing this in your sites code can cause some pages to crash and even freeze up some mobile browsers.

Earlier we mentioned the small amount of memory most phones had for browsing the web and running applications. This means that if your page size is too big then you risk your user running out of memory as their phone tries to render your site.


The Template

Stick with the basics, PHP is fine to run in order to process user log in and retreive data as long as you keep the number of includes to a minimum. Try running a short browser detection script to determine the resolution of the screen to direct the user to the best formatted version of your site, if resolution detection fails it is a good idea to allow the user to choose their viewing preference.

As for coding the layout. A single column page will suit your users fine, provide a reduced size logo or even better use text in place of an image. Limit your style sheets to under 20 or so classes. Provide your links in a list style format which runs vertically on the screen and limit the number of forms. Typing on a cell phone is cumbersome and many users will avoid log in and registration on mobile sites.

A good example of some simple mobile sites can be found in the list below, try a view source to see how simplified these sites are. Then view them in your mobile browser, you will see it does not take much to make an impression on mobile browsers.

tuneusin.mobi
Food Network
CNN

2,218 Responses to “Designing Websites for Mobile Devices”

  1. i love vhs shopping meter film…

    find meter film, i love shopping film and love vhs online…

  2. Optimize PC says:

    optimize pc…

    Registry Mighty – A Registry Cleaner System Optimizer Suite for Windows Operating Systems …

  3. According to my exploration, billions of people all over the world get the mortgage loans at well known creditors. So, there’s a good possibility to find a collateral loan in every country.

  4. web hosting says:

    Another Title…

    best web hosting….

  5. http://webdesign-boston.com/ says:

    “Affordable Webdesign Doesn’t Mean Compromise”…

    THE BEST SERVICE EVER AND MY SITE DIDN’T COST ME A FORTUNE….

  6. REVIEW IT BEFORE YOU BUY IT!!! says:

    **YOUTUBE VIDEO REVIEWS ON THE HOTTEST ELECTRONICS OUT**…

    #1 SITE FOR THE LATEST REVIEWS ON THE HOTTEST TECHNOLOGY HITTING THE MAINSTREAM!…

  7. bidcactus…

    Good post once again!…

  8. Growth of business is very fast to use this blog ideas in the future.

  9. Boat Sales says:

    really agreed with what they were saying and thought I would share it with you all…

    was surprised by this so thought I would share it with my readers…

  10. zhangqin says:

    普拉提 pilates

  11. zhangqin says:

    .T恤衫T-shirt.氯醋树脂VINISOL OH

  12. zhangqin says:

    .测功机 Dynamometer

  13. zhangqin says:

    .气液分离器Gas-liquid separato

  14. Sometimes you come across someones info taht you just need to share…

    Great blog entry, head over and check it out…

  15. Overview of Diabetes…

    [...]Diabetes is more common than most people think[...]…

  16. Skin Care…

    [...]heatlhy skin shows during every day activity[...]…

  17. Business eBooks…

    [...]finance, economics and more in eBook format[...]…

  18. Jtosme Movie says:

    Tks…

    Great information! I’ve been looking for something like this for a while now. Thanks!…

  19. Free Glucose Meters…

    [...]keeping diabetes in check from step one[...]…

  20. Tks…

    I’ve visited many blogs,forums, but this time:How your fantastic forum is . It makes me surprise….

  21. Games says:

    Tks…

    This information really helped me, I am sharing with a few friends….

  22. Electronics says:

    Tks…

    I’ve visited many blogs,forums, but this time:How your fantastic forum is . It makes me surprise….

  23. Jewelry says:

    Tks…

    Great information! I’ve been looking for something like this for a while now. Thanks!…

  24. Glucose Monitors…

    [...]blood glucose levels are key to keeping a healthy body[...]…

  25. What Causes Dark Under Eye Circles…

    [...]a look at the top reasons behind[...]…

  26. Useful Links…

    I saw this really good Page today, I would like to share it with you all….

  27. Informative Site…

    Hello everyone here are some sites that contains information that you may find useful yourselves. It’s Worth Checking out….

  28. Links for the day!…

    Good day everyone. I Just found this informative site i would like to share it with you guys….

  29. netbook hdmi says:

    {Great|Wonderful|Fantastic|Magnificent|Excellent} beat ! I {wish to|would like to} apprentice while you amend your {site|web site|website}, how {can|could} i subscribe for a blog {site|web site|website}? The account {aided|helped} me a acceptable dea…

    Be gentle to all and stern with yourself….

  30. wallpapers says:

    This is my Excerpt…

    I saw this really great post today….

  31. so beautiful high quality,Worth the money even on a small budget

  32. Useful Links…

    I saw this really great Website today, I would like to share it with you all….

  33. wallpapers says:

    Title…

    This is my Excerpt…

  34. The meek shall inherit the Earth, but not its mineral rights….

  35. My brother {suggested|recommended} I might like this {blog|website|web site}. He was {totally|entirely} right. This post {actually|truly} made my day. You {cann’t|can not} imagine {just|simply} how much time I had spent for this {information|info}! …

    People will buy anything that is ‘one to a customer.’…

  36. Useful Links…

    I saw this really good post today, I would like to share it with you all….

  37. You should check this out…

    [...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……

  38. This is my Excerpt…

    I saw this really great post today….

  39. {Great|Wonderful|Fantastic|Magnificent|Excellent} beat ! I {wish to|would like to} apprentice while you amend your {site|web site|website}, how {can|could} i subscribe for a blog {site|web site|website}? The account {aided|helped} me a acceptable dea…

    Be gentle to all and stern with yourself….

  40. Sites we Like……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  41. Eric S Brown says:

    Websites you should visit…

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  42. This is my Excerpt…

    I saw this really great post today….

  43. Recommeneded Websites…

    [... ]Here are most of the sites we recommend pertaining to our visitors[... ]……

  44. Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  45. Blogs ou should be reading…

    [...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……

  46. Mercosur USA says:

    Visitor recommendations…

    [...]one of our visitors recently recommended the following website[...]……

  47. A small question…

    Hey there, I need to ask you something. Is this site a wordpress blog site? I’m contemplating transferring our website from Blogger to wordpress, do you think this is feasible? Also did you set up the following template by yourself some how? Regards f…

  48. A small question…

    Hi there, I want to ask you some thing. Is this site a wordpress blog? My organization is thinking about switching my weblog from Blogger to wordpress, do you think this is achievable? In addition did you create this template by yourself some how? Many…

Leave a Reply

Spam protection by WP Captcha-Free

About Me

I am an independent web developer and webmaster of many sites. The main goal of Script Perfect is to provide answers to some of the hard to find questions when it comes to website design and coding.

Twitter