Jump to content
  • 0

Table Formatting in Task


eunha

Question

Hello ~

I'm trying to send an email via task and its contents are table records by using a table variable. The email in Outlook has borders and arranged neatly, however, the email in Gmail is not pleasing to the eyes as it is not properly displayed and has no borders. Please see the image below.

image.png.5685602b885d1b2c54c815285db3834f.png

Any advice or tricks on how to insert a border and make them properly aligned?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Hey!

You may try to include this code in your email body:

<head> <style>
table, th, td {
border: 1px solid black !important;
}
th {
text-align: center !important;
}
td {
text-align: left !important;
}
</style> </head> [@variable:TableName]

Don't forget to set the body to HTML first, then click the source button and paste the code. Please note that the <head> tag may be removed or be gone once you re-edit the email body, so you need to put it again if that happens.

 

This works on me. Hope this helps!

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...