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
Aditya KamdiAditya Kamdi 

How to add a company logo to the top of a cutom visualForce page ?

I have already created a static resorce known as FusionLogo in static resource for its sake.  I am sorry but I have to explain I am still very new with visualForce. Any input would be much appreciated
<apex:page sidebar="false" showHeader="false">
    <img id="theImage" src="FusionLogo" width="220" height="55"/> 
    
    <flow:interview name="FPQ"/>
    <h1>
        
    </h1>
</apex:page>

 
Best Answer chosen by Aditya Kamdi
GauravGargGauravGarg
Hi Adtiya,

Please try below code: 
 
<div class="header">
    <center><img src="{!$Resource.FusionLogo}" width="25%"/></center>
  </div>
For more info please click here (http://salesforce.stackexchange.com/questions/128909/how-to-include-image-as-header-logo-in-a-visualforce-pdf-page)

Thanks,
Gaurav

All Answers

GauravGargGauravGarg
Hi Adtiya,

Please try below code: 
 
<div class="header">
    <center><img src="{!$Resource.FusionLogo}" width="25%"/></center>
  </div>
For more info please click here (http://salesforce.stackexchange.com/questions/128909/how-to-include-image-as-header-logo-in-a-visualforce-pdf-page)

Thanks,
Gaurav
This was selected as the best answer
Aditya KamdiAditya Kamdi
Thanks Gaurav it helped me out great @Bala I needed a way to keep the image in the center as well 
Aditya KamdiAditya Kamdi
Thanks Gaurav and Bala the Solution worked for both