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
Michaela PrambsMichaela Prambs 

Formatting lost on mobile

Hello everybody,

I was creating some VF pages and in Salesforce Classic it looks like this

error1

But having a look into the mobile version, so Salesforce1, it looks like this

error2

Any suggestions what to do to remain on the formatting also on mobile?

Thank you.

Michaela
kgilkgil
Hi Michaela,

In Salesforce1 there was a recent change to not include the stylesheets for Visualforce pages by default. You should just need to include the attribute standardStylesheets="true" in your opening page tag and that should bring in the same formatting in Salesforce1. 
<apex:page standardStylesheets="true">
...
</apex:page>
Spring '15 release notes noting this change:
http://releasenotes.docs.salesforce.com/en-us/spring15/release-notes/rn_vf_suppress_unneeded_assets_in_salesforce1.htm

Visualforce page component attributes:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_page.htm
Michaela PrambsMichaela Prambs
Hi kgil,

sorry but that didn't work :(