I recently discover the power of MJML and trying to create a email template for my clients. In this email I want to show them some data on a table format, the problem Im currently facing is when I display the table for mobile, which looks horrible (see 2nd screenshot below). Also my the content in the email is in german, which in most of the cases makes the words longer.
MJML:
<mjml>
<mj-head>
<mj-style>
.box-shadow, .box-shadow p {
box-shadow: 0px 3px 12px grey;
border-radius: 20px 20px;
}
</mj-style>
</mj-head>
<mj-body>
<mj-section text-align="center" padding="25px 0">
<mj-column width="100%" border-radius="20px 20px" background-color="#fff" css-class="box-shadow">
<mj-text align="center" color="#000" font-weight="bold" padding="15px 0px 5px 0px">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed...
</mj-text>
<mj-divider border-width="2px"></mj-divider>
<mj-table table-layout="auto">
<tr style="border-bottom:1px solid #ecedee;text-align:center;">
<th>Column A</th>
<th>Column B</th>
<th>Column C</th>
<th>Column D</th>
<th>Column E</th>
<th>Column F</th>
<th>Column G</th>
</tr>
<tr style="text-align:center;">
<td>78876</td>
<td>C6LE1Q</td>
<td>customer@gmail.com</td>
<td>5</td>
<td>40FT2</td>
<td>23€</td>
<td>Yes</td>
</tr>
</mj-table>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Email template preview for Desktop:
Email template preview for Mobile:
Question: Is there a way to display the full table for Mobile without breaking the columns names?
Thank you in advance for your time.