Ensure that table styles are only applied to the encapsulating table and not to tables in the e-mail body

master
Sven Slootweg 12 years ago
parent d7f1a35ba5
commit d0d12a1ccb

@ -14,21 +14,23 @@
%(versions)s %(versions)s
<table class="message"> <table class="message">
<tr> <tbody>
<th>From:</th> <tr>
<th>To:</th> <th>From:</th>
<th>Date:</th> <th>To:</th>
</tr> <th>Date:</th>
<tr> </tr>
<td>%(from)s</td> <tr>
<td>%(to)s</td> <td>%(from)s</td>
<td>%(date)s</td> <td>%(to)s</td>
</tr> <td>%(date)s</td>
<tr> </tr>
<td colspan="3" class="body"> <tr>
%(body)s <td colspan="3" class="body">
</td> %(body)s
</tr> </td>
</tr>
</tbody>
</table> </table>
</div> </div>
</body> </body>

@ -45,14 +45,14 @@ table.message
margin-top: 20px; margin-top: 20px;
} }
table th, table td table.message > tbody > tr > th, table.message > tbody > tr > td
{ {
text-align: left; text-align: left;
border: 1px solid #313131; border: 1px solid #313131;
padding: 5px 7px; padding: 5px 7px;
} }
table th table.message > tbody > tr > th
{ {
background-color: #313131; background-color: #313131;
color: white; color: white;

Loading…
Cancel
Save