Hi please help me how to fix this enter image description here

<style type="text/css" media="print">
                @page {
                margin-left: 1cm;
                margin-right: 1cm;
                margin-top: 0.8cm;
                margin-bottom: 2cm;
                                @bottom-center {                 
                content: element(footer);              

                @top-center {
                content: element(header);


                table {
                              page-break-inside: avoid; 

                div.footer { 
                             page-break-after: avoid;
                display: block;              
                font-family:" sans-serif";
                div.header {
                display: block;                     
                position: running(header);

if i add " -fs-table-paginate: paginate;" to table in style sheet footer line is vanishing in all pages except first page.

Please help me on fixing this

  • Because this is native CSS, I think this question is more suited for stackoverflow . – Jayant Das Apr 19 at 13:36
  • I disagree. I think there are enough Salesforce-specific quirks to rendering visualforce as a pdf that it's still appropriate here. – Derek F Apr 19 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.