Another Salesforce blog!!!

Salesforce, Apex

How to user apex:stylesheet in visualforce page?


Step 1:
Create a CSS file.
Save the file with a .css extension
Step 2:
Upload the saved file as a Static resource.

Have reference in VFP like this:
<apex:stylesheet value="{!$Resource.CssExample}"/>

Another way of referencing is:

<apex:stylesheet value="{!URLFOR($Resource.myofferZIP, 'myofferCSS.css')}"/>

Leave a Reply

Your email address will not be published. Required fields are marked *

*