Jump to content

How to set vertical alignment on item description in invoicepdf.tpl


surework

Recommended Posts

Hello,

 

I realized that the alignment of line description of the default InvoicePDF is at the top of the row. Please look at the attached screen shot for better understanding.

 

I had tried to edit the invoicepdf.tpl by adding the command valign="middle" but was not successful. Below is the edited code from invoicepdf.tpl file.

 

foreach ($invoiceitems AS $item) {

$tblhtml .= '

<tr bgcolor="#fff" valign="middle">

<td align="left">'.nl2br($item['description']).'<br /></td>

<td align="right">'.$item['amount'].'</td>

</tr>';

}

 

I had tried to adjust the row height by adding the command style="line-height: 80%;" but the output is not that pleasing as well.

 

May I know what is the correct way of editing the code to achieve vertical alignment for the item description?

 

Thank you in advance.

 

Regards

Alvin

Untitled.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated