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
<table class="message">
<tr>
<th>From:</th>
<th>To:</th>
<th>Date:</th>
</tr>
<tr>
<td>%(from)s</td>
<td>%(to)s</td>
<td>%(date)s</td>
</tr>
<tr>
<td colspan="3" class="body">
%(body)s
</td>
</tr>
<tbody>
<tr>
<th>From:</th>
<th>To:</th>
<th>Date:</th>
</tr>
<tr>
<td>%(from)s</td>
<td>%(to)s</td>
<td>%(date)s</td>
</tr>
<tr>
<td colspan="3" class="body">
%(body)s
</td>
</tr>
</tbody>
</table>
</div>
</body>

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

Loading…
Cancel
Save