Sometimes we are getting a lot of confused in visualforce page header and footer assignment (when Change to PDF Format). Don’t Worry about it hereafter, You can avoid this kind of issues by using following CSS Code.
======================================================================
@page { size:A4 portrait; margin-left: 1cm; margin-right: 1cm; margin-top: 1cm; margin-bottom: 3.54cm; @bottom-left { content: element(footer); } } div.footer { position: running(footer); }
==========================================================================
- Save this CSS file into a static resource.
- And call from the visualforce page.
- Eg..
We have to assign Header And Footer using Visualforce Page with CSS in Salesforce. so kindly let us know if you have any query.
————————————– We Are Happy To Helping You ————————————-
<apex:stylesheet
value=
"{!URLFOR($Resource.MerfantzStyles, 'merfantzCss.css')}"
/
>