Change format of html table (font, border lines)

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.

< table border-collapse: collapse>

1 Like

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

I added this and it wrote this to header :slight_smile:

I am not sure so to make it easier. (20.8 KB)

Not on header just use with the tag where table tag opens up

so not like this?

Like this

Yea I did like this but the output is like this :slight_smile:

Refer the link below, it might help you…
Tryit Editor v3.6 (

Thanks I made it work

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.


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%; }