how to format a table to be included in html email sent by scenario
Hello , I have an scenario which sends an email at the end . In the body of the email I want to include one table . I do it but the text withing the cells is not center and I would like to format it . Does anyone know how to do it ?
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; text-align: center;">
<br>
${table_recap_voice}
</td>
Thanks a lot,
Héctor
Answers
-
sj0071992 Partner, Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2022, Neuron 2023 Posts: 131 Neuron
Hi @hruanosu
,Could you please help me understanding with the screenshot of the sample output and what is expected?
Meanwhile try something like in Freemaker Template
<head> <style> table, th, td { border: 1px solid white; border-collapse: collapse; } th, td { background-color: #96D4D4; } </style> </head> <p> Add your Email Body </p> <table border=1> ${table_recap_voice} </table> <p> This is an Auto Generated Email <br></br> <br>Best Regards,</br> XYZ Team </p>
I hope this will help
-
hruanosu Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 2 ✭✭✭
Hello @sj0071992
,Thanks a lot for your answer , attached an screen capture with the table ( names are hidden for confidentiality )
There are 4 columns : AM , #_Alerts , Volume_Delta , Revenue_Drop .. I would like to center the content as it's aligned to the left.
Thansk a lot