jntrk
(jntrk)
January 20, 2021, 7:22am
1
Hey everyone,
I add an HTML table to the email body where I get the table from excel append its columns and rows to the html table.
I initialize the table like this:
How can I change the table format, the font of it and I want the table lines to be like this:
At the moment it looks like this which is the default I think:
I have never done this before I would appreciate every bit of help.
Thanks
nv08
(Nilay Varshney)
January 20, 2021, 7:29am
2
< table border-collapse: collapse>
1 Like
kantheshm
(Kanthesh Mallesh)
January 20, 2021, 7:29am
3
Hi @jntrk ,
I hope you have access to html code. Do one thing,
In html code between < head> <\head>. Paste the below code…
< style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
< /style>
This should solve your need. If you are unable to do that, please share the copy of the code, let me do it for you!!
1 Like
jntrk
(jntrk)
January 20, 2021, 7:33am
4
I added this and it wrote this to header
jntrk
(jntrk)
January 20, 2021, 7:33am
5
I am not sure so to make it easier.
DataTableToMail.zip (20.8 KB)
nv08
(Nilay Varshney)
January 20, 2021, 7:36am
6
Not on header just use with the tag where table tag opens up
jntrk
(jntrk)
January 20, 2021, 7:44am
9
Yea I did like this but the output is like this
kantheshm
(Kanthesh Mallesh)
January 20, 2021, 7:48am
10
Refer the link below, it might help you…
Tryit Editor v3.6 (w3schools.com)
jntrk
(jntrk)
January 20, 2021, 8:49am
12
btw how can I make the table strech if the value inside the cell is longer than the cells size. I dont want it to enter a new line inside the cell.
kantheshm
(Kanthesh Mallesh)
January 20, 2021, 9:23am
13
Great!!
Good to hear that!!
For auto resize, please include this css property in the code between style tag like the previous…
table{ table-layout: auto;
width: 100%; }