View Full Version : Table foot element displays strangely in ADE


Klip
08-07-2012, 09:51 AM
Hi there -
I'm having some strange results when setting up a table in InDesign that includes a "table foot".

In the HTML that comes out of InDesign on export to EPUB, the table foot element is just below the table head element, then follows a tbody element with all the rest of the table.

When viewed in browsers like Chrome and Firefox and software like Sigil this displays fine - the foot is displayed at the bottom of the table, separated from the table head by all the stuff in the body. But in Adobe Digital Editions the foot is displayed just below the table head, followed by the body.

Is this something unique to ADE or do other ereaders do this too?

Should one avoid table foot when setting up a document?

Not sure what happens to HTML tags when I insert them in posts here so bear with me...
Table HTML looks like this when exported to EPUB from InDesign:

<table id="table-1">
<thead>
<tr>
<td>
<p >head</p>
</td>

<td>
<p >head</p>
</td>
</tr>
</thead>

<tfoot>
<tr>
<td>
<p >foot</p>
</td>

<td>
<p >foot</p>
</td>
</tr>
</tfoot>

<tbody>
<tr>
<td>
<p >1</p>
</td>

<td>
<p >2</p>
</td>
</tr>

</tbody>
</table>

Jellby
08-07-2012, 10:21 AM
Tables are often a sure way to failure. While the ePub spec mentions thead/tfoot/tbody as supported tags, the (X)HTML spec doesn't mandate that anything special should be done with them, it just mentions things that can be done or user agents may do...

I'd say you should avoid tables when possible.

Klip
08-08-2012, 08:33 AM
Would love to avoid them, but client's books contain many tables :)

Anyone had experience with this?

Toxaris
08-08-2012, 10:14 AM
Never worked with table foot or body. Simple tables work fine.
You are probably better of mimicking the look for the foot you want with CSS.