• Hi,

    I trying to customize the template but I am getting some strange behaviour with the page break.
    I made a seperate table for the totals like this:

    <table style="width: 100%" class="order-details">
    	<tr class="no-borders">
    		<td class="no-borders" style="width: 50%">
                      ...
    		</td>		
    		<td class="no-borders" style="width: 50%">
                        <table class="totals">
                        ...
                        </table>
                     </td>
           </tr>
    </table>

    The 50% width is showing correctly if the proforma only has 1 page.
    But if the table is breaking to page 2, the 2nd <td> is getting 100% instead of 50% (first <td> is usually empty but if I put some dummy text inside, it still does not resize to 50% but to the content width)

    I don’t get why it matters if this table is on page 1 or 2.
    Do you have an idea how to fix this?

    Our versions:
    WP 5.8
    WC 5.6.0
    WooCommerce PDF Invoices & Packing Slips 2.9.3
    WooCommerce PDF Invoices & Packing Slips Pro 2.9.2

    Thanks in advance!
    Best regards,
    Christoph

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Style changes when document has multiple pages’ is closed to new replies.