views:

675

answers:

1

I read the tutorials for web applications and the special rules you can put into style sheets. Are folks finding they can just tweak their style sheets to serve up content to iPhones or do they deliver custom iPhone specific pages? would you bother with this if you were going to create a specific page anyway for mobile users ? (even if targetted at iphone/smartphone users only)

Any advice would be appreciated

+2  A: 

You can indeed trap the incoming request, find out it's an iPhone/SmartPhone/Mobile device, and serve other CSS files accordingly.

I would not define extra mobile-specific rules/selectors in a CSS file, but serve another, trimmed down and prepared CSS file.

But that will only alter the way your HTML looks, and not what you serve to the client, in this case a mobile device.

Mostly, we serve other HTML as well, as you have to take bandwidth into account. We serve 'less' HTML, i.e. a trimmed down version,of the original page, to mobile devices.

Look at what Twitter does for mobile devices: http://m.twitter.com/login They not only serve another look, they also serve other HTML and less functionality (or less functionality on one page).

postback
curious. that link doesnt open in IE but does work in safari/ff. odd
MikeJ
MikeJ - the link doesn't work in IE as the page is XHTMLMP 1.0 which IE doesn't support.
Matt Lacey