I am trying to send an HTML email with a certificate.
- Since its a certificate I need the logo as a watermark image (PNG) to be the background of the HTML
- The watermark has to be the center of that email.
- The watermark PNG should not stretch
The problem is the image is not coming to the center. Also, if I remove the Div width and height the watermark disappears.
Here is my HTML
<div id="watermark">
<img src="https://js.pngtree.com/web3/images/home/web_heart_animation.png" height="110%" width="100%" />
</div>
Here is my CSS
body{
font-family: 'Arial';
}
#watermark {
position: fixed;
/**
Set a position in the page for your image
This should center it vertically
**/
bottom: 3cm;
left: -1cm;
/** Change image dimensions**/
width: 22cm;
height: 22cm;
/** Your watermark should be behind every content**/
z-index: -1000;
}
@media print {
#footer {
position: fixed;
bottom: 0;
}
}