I would like to as you how to repeat table header ( thead) for each page on the top ?? the simple code is like this :
</messaging:htmlEmailBody>
<messaging:attachment renderAs="pdf" filename="{!relatedTo.Name}.pdf">
<html>
<body>
<table border="1">
<thead>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>value 1</td>
<td>value 2 </td>
</tr>
<tr>
<td>value 3</td>
<td>value 4</td>
</tr>
</tbody>
</table>
</body>
</html>
</messaging:attachment>
</messaging:emailTemplate>
so according this example , I would like to reapeat ( Head 1 and Head 2) at the beginning of each page . I test this code but it doesn't work :
@page {
thead {
display: table-header-group;
}
}
I tested thead {display: table-header-group;}
but it doesn't work
an idea ??
thanks