Are you writing custom pages for iPhone web apps?

I have read tutorials for web apps and special rules you can put in stylesheets. Do people find they can just tweak their stylesheets to serve content to the iPhone, or do they deliver customized iPhone pages? would you bother with this if you were going to create a specific page for mobile users anyway? (even if they are only configured for iphone / smartphone users)

Any advice would be appreciated

+1


source to share


1 answer


You can actually grab the incoming request, find out on the iPhone / SmartPhone / Mobile device and serve other CSS files accordingly.

I would not define additional mobile specific rules / selectors in the CSS file, but serve another, crop and prepare the CSS file.

But that will only change how your HTML looks, not what you serve to the client, in this case it's a mobile device.



Basically, we serve other HTML as well, as you need to consider bandwidth. We serve "less" HTML, i.e. A stripped-down version of the original page, for mobile devices.

Check out what Twitter does for mobile: http://m.twitter.com/login Not only do they serve a different look, they also serve different HTML and less functionality (or less functionality on one page).

+2


source







All Articles