views:

1485

answers:

4

Hi friends,

I have designed my site with a 900 x 600 fixed background image. On the computer it looks fine. How will it look on a PDA device? Will I have to design it separately for PDA?

How should check whether my site can be browsed effectively from mobile phone?

What should I do?

A: 

Well, you could always throw some detection javascript in there to check the type of browser, then redirect to a different site that is formatted for mobile devices. This seems to be the norm for most sites.

Examples:

  • Digg.com
  • Twitter.com
  • Google.com
contagious
+7  A: 
Charles Roper
+1  A: 

Instead of browser detection, you can supply alternative stylesheets for handheld devices. With

<link rel="stylesheet" href="small.css" type="text/css" media="handheld">

The advantage is that you only need one version of your site, the difference lies in the stylesheets. You need one additional css, while with browser detection you would need different versions of every page in your site. The downside is that not all browsers support the media attribute for stylesheets. But the most modern browsers do, and the support for it is growing.

If you are interested, I recommend having a look at an A List Apart article.

BTW, if you are not using css yet, switch to it immediately, no matter which solution for your problem you choose. CSS rocks!

Treb
+1  A: 

You can also get device emulators for the Blackberry range of machines.

David Pike