Background-size:Contain doesnt work within PDF
-
Hi,
My client has bought the professional version of this plugin. I have adjusted the Proforma-template (Proforma.php) to make a new custom pdf template for a new admin order email.
My problem: Right now with displaying the product image within the pdf it doesn’t use my background-size:contain or cover
This is my code:
<td style=”width:250px; height:250px; position:absolute; background-image: url(‘<?php printf( esc_html__(get_the_post_thumbnail_url($product->get_id())) );?>’);
background-size:contain;
background-repeat:no-repeat;”>
</td>Is their any way so I can get it to work, any help is welcome?
Thanks in advance.
- The topic ‘Background-size:Contain doesnt work within PDF’ is closed to new replies.