1

I need to create a header and footer on a tag using DOMPDF. How can I achieve this?

Assuming I have a header class like this one:

<div class='header'>
    <div>
        <img scr='image1.png' style="width:100px; height:150px" />
        <h1>This is header</h1>
    </div>
</div>

and a footer like this one

<div class='footer'>
    <div>
        <img scr='image1.png' style="width:100px; height:150px" />
        <h1>This is a footer. All rights reserved.</h1>
        <img src = image2.png style="width:100px; height:150px;">
    </div>
</div>

I want to create those <div> tags (class footer and class header) to create the DOMPDF header and footer.
Any suggestion is highly appreciated! Cheers!

1stthomas
  • 731
  • 2
  • 15
  • 22
unknown
  • 385
  • 3
  • 6
  • 18

1 Answers1

1

CSS :

position:fixed; 
top: 0; or bottom: 0;
Fabien Ménager
  • 140,109
  • 3
  • 41
  • 60