Email Templates - HTML question

Email Templates - HTML question

Hello,

I am making a new quote template. I'm using the version of the template editor that lets you edit HTML, but it doesn't look like this one has "Add header" or "Add footer" options, so I need to do these in the HTML code.

What I'm trying to do is as follows:
1. If it's possible to insert a variable recognized by Zoho that inserts "current page #" and "total # of pages". See the highlighted section in the HTML code. I put the {{'s as placeholders for now until I know if this is possible
2. Correct the HMTL code so that it renders correctly as a footer, see the bottom image. Right now it is inserting that at the bottom of the PDF and actually it is overlapping the bottom image.

Thanks in advance to anyone who can help!

The HTML code used in the Template Editor:
<div><meta charset="UTF-8">
    <title>Document with Header and Footer</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        .content {
            margin: 0 2cm; /* Adjust the margin as needed */
        }
        .footer {
            position: fixed;
            bottom: 1cm;
            width: 100%;
            text-align: left;
            font-family: Arial, sans-serif;
        }
        .footer-line {
            border-top: 1px solid #000;
            margin: 0 2cm;
        }
        .footer-text {
            margin: 0 2cm;
            font-size: 12px;
        }
        .footer-center {
            text-align: center;
            font-size: 14px;
            margin: 0 2cm;
        }
    </style>


        <div>
            <!-- Your content goes here -->
        </div>
        
        <font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">DATE:&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="white-space:pre"> </span>{Insert Date Field}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">TO:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${Quotes.Contact Name}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">FROM:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ${Quotes.Quote Owner}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">EMAIL:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ${Quotes.Contact Email}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">SUBJECT:&nbsp; &nbsp; &nbsp; &nbsp; ${Quotes.Subject}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">${Quotes.Proposal Body}</font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><br></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><b>THE PRICE TO COMPLETE THE WORK AS DESCRIBED ABOVE IS $${Quotes.Proposal Price}, TAX INCLUDED.</b></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2"><b><br></b></font></div><div class="content"><font face="Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif" size="2">${Quotes.Terms and Conditions}</font></div><div class="content"><br></div><div class="content"><br></div><div class="content"><img imgfilesize="8583" src="https://crm.zoho.com/crm/viewInLineImage?fileContent=082d5e87140799bd4212782d793c5e527b9209e6c26a778a37f11e0a46f1999ae83112d6df663cd9109716a059bb9cc41f50b1e858debf4d2b5b10e9c087da38918f417fa8d90a788e3ed8e287135923e6dfedcfb2227b0dc6dbd3fbf989a2d2" align="" width="100%"><br></div>
    <div class="footer">
        <div class="footer-line"></div>
        <div class="footer-text">
            Page {{PageNumber}} of {{TotalPages}}</div>
        <div class="footer-center"><font size="4"><i>
            Solutions for Water Systems
        </i></font></div>
    </div></div>


Here is our template in the editor mode, note the header and signature block are actually pasted images so I can get better looking results.

Here is how it currently renders in PDF, note the footer didn't work correctly on the 1st page and on the 2nd page it is not at the bottom but overlapping the image:


    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now