Hello community, how is everyone doing?
I'm currently working on creating my own HTML Email templates, but I'm facing some challenges with responsiveness.
On desktop devices, the email looks like this: https://i.sstatic.net/X8vfu.png
However, when viewed on mobile, I need the elements inside {{}} to stack vertically like this: https://i.sstatic.net/gDj1u.png
Unfortunately, what's happening is that the first element shrinks with large text, and the second one doesn't move down as intended:
https://i.sstatic.net/jShLO.png
Can anyone assist me with the CSS for this issue? I have included it below:
.tg {
border-collapse:collapse;
border-spacing:0;
width: 100%;
margin: 32px auto 32px;
}
.tg td{
overflow:hidden;
word-break:normal;
}
.tg .tg-3z1b{
text-align:right;
vertical-align:top;
font-weight: normal;
}
.tg .tg-73oq{
text-align:left;
vertical-align:top
}
.main-content-table {
margin: 64px auto;
}
<table class="tg">
<tbody>
<tr>
<td class="tg-73oq" style="width: 50%">Carga de Saldo</td>
<td class="tg-3z1b" style="width: 50%">{{saldo}}</td>
</tr>
<tr>
<td class="tg-73oq">Total</td>
<td class="tg-3z1b">{{total}}</td>
</tr>
<tr>
<td class="tg-73oq">Saldo Total</td>
<td class="tg-3z1b">{{saldoTotal}}</td>
</tr>
<tr>
<td class="tg-73oq">Fecha</td>
<td class="tg-3z1b">{{fecha}}</td>
</tr>
<tr>
<td class="tg-73oq">Código de Operación</td>
<td class="tg-3z1b">{{qExitosos}}</td>
</tr>
</tbody>
</table>