+ Start a Discussion
Salesforce 283Salesforce 283 

Repeating Header image in PDF

Hi Guys,

I have put header image in static resource that calling in vf page but its not working. I had to mention apex:image in vf page again where i want to see the header.  So could you please help me out this problem and i don't want to mention apex:image.

div.header{
    position: running(header) ; 
}
@page {
        margin-top: -0.2in;
        margin-left:-0.1in;
        margin-right:-0.1in;
        
      @top-center { 
              content: element(header);
        background-image: url('{!$Resource.Con_Header}');
   }
 }


Thanks,
MAhesh.
sfdcsushilsfdcsushil
Did you check Browser console if that image is getting loaded or not