views:

63

answers:

3

how to make content of a web page fully scaled whatever the width/height of the device visible portion is?

A: 

In iphone

webview.scalesPageToFit = YES;

All the best.

Warrior
A: 
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

works as a meta tag as well, if you want to let users scale the site just do not use minimumscale, maximumscale and user-scalable attributes.

Numenor
A: 

Hello

To get width of the mobile requesting website it is very important to identify right mobile and fetch corresponding screen width of the mobile.

Please take a look at http://51degrees.codeplex.com/. It is an ASP.NET open source module which detects mobile devices and provides auto redirection to mobile optimized pages when request is coming from mobile device. It makes use of WURFL mobile device database. It gives upto-date mobile capability information like manufacturer, model, screen height & width, image formats supported and MANY MORE...... which helps to customize pages for best mobile output.

Amit Patel