I am trying to prepare mark up for an HTML email content. I have a table as shown below. The styles for the table are not getting applied when viewed in gmail(mobile and web) applications. Also the styles for this table are not getting applied when tested in apple mail. Can anyone please help.
https://jsfiddle.net/Anifa/puyddvmy/
<table cellspacing="0" cellpadding="0" border="0" width="100%" id="txn-info-container" style="padding: 0px 0px 0px 0px">
<tr>
<td width="25">
</td>
<td width="550">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>label</td>
<td>Value</td>
</tr>
<tr>
<td>label</td>
<td>value</td>
</tr>
<tr>
<td>label</td>
<td>value</td>
</tr>
</tbody>
</table>
</td>
<td width="25">
</td>
</tr>
</table>
#txn-info-container table {
max-width: 550px;
width: 100%;
background-color: #F7F6F6;
border-top: 1px solid #dfdddc;
}
#txn-info-container table td {
height: 30px;
line-height: 30px;
border-bottom: 1px solid #dfdddc;
font-family: 'Roboto', 'Arial', 'Helvetica';
font-size: 12px;
/* text-indent: 10px; */
Margin-left: 10px;
padding-left: 10px;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
#txn-info-container table {
Margin-left: 0px!important;
}
}
Note : I am writing all the css in style tag and inlining it programatically using inline-css node module package. All the head and style tags gets removed and only the inlined css styles apply