function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gopi biswalgopi biswal 

while opening vf page in mobile not aligned properly

I'm opening a VF page in mobile via site. but the image and all the fields in this page are not in a right proportion(not aligned properly).The same if I open in my PC it's working fine. So plz any advice or solution... Thanks in advance...
kgilkgil
By not aligned properly, do you mean fields are flowing off of the screen? Are you using the standard Visualforce components such as pageBlock, pageBlockSection, etc.?

The standard Visualforce components have not been designed to format to a mobile device screen. While often times they can work by setting elements to 1 column, they are not ideal and often fields will be displayed off of the initial screen. 
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_components_to_avoid.htm

If you need the fields to be properly formatted for mobile devices then it is suggested to avoid the standard Visualforce components and resort to a typical HTML/CSS responsive page using standard mobile development methods.