views:

417

answers:

3

Hello,

I would like to know how I can make a webpage that will look good in most mobile phones. For making normal webpages, I use dreamweaver cs3. I don´t really want to use emulators unless I have too. Can I not just center everything in the middle, with auto margins on both sides.

When I am looking at the pages that I have made sofar, they look ok, but in a mobile phone some things get cluthered. I am planning to strip out all the non essential information and markup for use on the mobile phone.

Then there is the question, basicly the most important one for me now

How to present a different page if the mobile phone go´s to the same address?

edit

I diddn´t get an answer om the last one, but I found a browser detection script that I could use.

thanks, Richard

+1  A: 

Just my two cents:

  1. Personally, I would make the layout fluid, so that it auto adjusts itself according to the length and breadth of the display. Remember many phones have accelerometers which can change the direction of the page, when tiled sideways. In this case, horizontal scrolling is a big no-no.

  2. Just keep all useless things aside and present only the basic information, advanced or details information should be places under More button.

  3. Don't use Images, or I say - Use it as minimum as possible. This would take the most of the user's bandwidth. If you are targeting this for people under GPRS/EDGE , then better avoid Images even more. People on 3G have a better chance.

  4. You can have a look at Facebook or Gmail mobile interface to have an idea. Google Reader's mobile interface is also good, but still not upto the mark.

  5. I don't know how much people would agree with me - Keep AJAX low. Most phones can't handle so much load if your page is highly ajaxified. Remember, it is a mobile and not a computer. It does have some limitation. Probably very high end phones can render it, but to keep your userbase strong, minimise the use.


Content Load: If the page takes just to much time to load, then probably the user won't bother using it. They would prefer to use any other alternative/service which can get his/her work accomplished.

CSS: Make less use of CSS as much as possible. Use colours more than Images as I said many times above. You should make use of float to make the page fit properly on the screen. If you desire you can use smaller font - but beware, don't go below a certain level.

Manish Sinha
A lot of low end phones can't handle it at all. Really developing pages to be degradable to the point of functioning with 0 AJAX should be a key requirement. If you want to aim for the 90%, you have to factor this in.
squeeks
That's where the key lies. Low end phones can't handle AJAX at all. I have a Nokia 5800 XpressMusic which has in-built browser based on WebKit which can handle AJAX to some extent, but stops responding for sometime if it's heavy AJAX.
Manish Sinha
@manish, thanks for your contributions. I am actually testing with the same phone. After some further reading. My conclusion so far is to make a centered layout off 300px width with left and right auto-margins. I leave out most off the images and use colors instead.I do that because most sreens are somewhat off that size, except if you can tumble your screen. I have to think what I could do about that.Javascript is not well supported or not at all on most devices. So, I will just leave that out.
Richard
Nice thought. Leave out JS and use images to the minimum. Use colours to the max. Have a look at Stackoverflow itself. There are only a few images.
Manish Sinha
+1  A: 

A List Apart has a great article about conditionally using different style sheets for mobile devices:

http://www.alistapart.com/articles/putyourcontentinmypocket/

You can also check out Apples Documentation on designing web content for the iPhone, although it's iPhone specific, it pertains to mobile devices in general:

http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html#//apple_ref/doc/uid/TP40006517-SW1

ctshryock
thanks, I had my normal layout from this site also
Richard
+2  A: 

In order to get the greatest amount of compatibility, you have to trade it off with ditching most of the bells and whistles browsers running on desktop computers consider run of the mill.

  • Declare the mobile doctype with your XHTML documents, and make sure your markup and styleheets are valid.
  • Keep you CSS real simple. No :hover, don't use images as part of the design, limit your usage of fixed sizes/margins.
  • Emulators aren't as effective for testing as the actual devices themselves. Phones that do Wifi/Bluetooth PAN can make life cheaper, but testing over carrier's network will also help you get a better understanding of the speed and latency.
  • There is no "typical device", but if you can get your website looking really good under webkit without using webkit's CSS addons, you've covered a huge chunk of devices (Nokia S60, iPhone, Android etc). Work with Opera Mini, and you'll expand that chunk even more.
  • Compact your output as much as possible. Not only are your end users going to be screen and CPU processing limited, they are most likely going to be limited by network. The faster you can push out your data to them, the less-sluggish your website will feel.
squeeks