Are there any thead limitations that make it not print on each page in Firefox?
Posted
by SeanJA
on Stack Overflow
See other posts from Stack Overflow
or by SeanJA
Published on 2010-03-22T15:49:54Z
Indexed on
2010/03/22
15:51 UTC
Read the original article
Hit count: 297
I have a table that has a <thead>
, a <tfoot>
and a <tbody>
. It is supposed to print the thead and tfoot on each page in theory, but for some reason the thead does not if it contains certain elements together.
This works:
<thead>
<tr>
<td colspan="3">This works</td>
<tr>
<tr>
<th colspan="2">column 1</th>
<th>
column 2
</th>
</tr>
</thead>
This does not seem to work:
<thead>
<tr>
<td colspan="3">
<h2>Header</h2>
<address>
<strong>address 1</strong> <br />
address 2 <br />
address 3 <br />
</address>
<img src="/images/logo.png" alt="Logo" />
<h2>Another header</h2>
<hr />
</td>
</tr>
<tr>
<th colspan="2">column 1</th>
<th>
column 2
</th>
</tr>
</thead>
Is there a reason for this not to work?
© Stack Overflow or respective owner