Issue with Right Alignment in Advanced PDF/HTML Template
Description:I am experiencing an issue with the right alignment of numbers in my Advanced PDF/HTML template within NetSuite. Despite applying CSS for right alignment both in the stylesheet and inline styles, the final PDF output consistently displays the numbers left-aligned.
I have implemented the following adjustments in my template code:
- The default table cell alignment is set to left, but I have explicitly set right alignment for total amounts using inline styles and a CSS class.
- Unfortunately, the final PDF does not reflect the expected right alignment.
Sample Code Portion:
<style>
table { font-size: 9pt; table-layout: fixed; width: 100%; }
th { font-weight: bold; font-size: 8pt; vertical-align: middle; padding: 10px 6px; background-color: #e3e3e3; color: #333333; text-align: left; }
td { padding: 4px 6px; text-align: left; } /* Default left alignment */
.right-align { text-align: right; } /* Right alignment class */
</style><tr>
<td colspan="4" style="border-top: 1px solid #000;"></td>
<td class="right-align">${groupTotalAmountFX?string('#,##0.00')}</td>
<td class="right-align">${groupTotalAPBalanceFX?string('#,##0.00')}</td>
<td class="right-align">${groupTotalAPBalanceSAR?string('#,##0.00')}</td>
<td class="right-align">${groupTotalBalanceContractSAR?string('#,##0.00')}</td>
</tr>
Request:Could you please assist in identifying any potential issues with right alignment in the Advanced PDF/HTML template output? Are there any known conflicts or recommendations for ensuring proper formatting?
Thank you for your support!