View Full Version : issue with table headers in ADE


iain robinson
07-07-2011, 11:51 AM
Hi all

Testing out tables (simple ones) in ePub. With minimal manual tweaking I can get a table exported from Indesign CS5.5 that looks good in Sigil and Ibis but surprise surprise there's an issue with ADE. Won't be able to check it in iBooks until tomorrow. It's not a biggy if there's no way round it but worth doing if there's a quick fix.

The problem is that the table header should have a different background colour to the rest of the table, but this seems to be ignored in ADE. See screenshots.

My code;
<div class="Basic-Text-Frame">
<table class="No-Table-Style" id="table-1">
<thead>
<tr>
<th>Change</th>
<th>Scenario</th>
<th>Considerations</th>
</tr>
</thead>

<tbody>
<tr>
<td>
<p class="main-text-no-para-indent">Contract Extension</p>
</td>
<td>
<p class="main-text-no-para-indent"><span class="bullet"></span> An authority wishes to extend an existing contract for 2 years rather than run a costly and time consuming procurement exercise&nbsp;</p>
<p class="main-text-no-para-indent"><span class="bullet"></span> Its supplier may be willing to offer a price discount or additional services in order to secure an extension</p>
</td>
etc etc etc

My CSS;
table {
background: #EFD0C0;
border: 2px solid black;
margin-top: 1em !important;
margin-bottom: 1em !important;
border-collapse: collapse;
}

td {
background: #EFD0C0;
border: 2px solid black;
vertical-align: text-top;
padding: 0.25em !important;
}

thead {
background: #C9652F;
}

th {
border: 2px solid black;
text-align:left;
padding: 0.25em !important;
}

Would appreciate it if any of you guys had any thoughts about this (except "don't use/worry about ADE").

cheers,
Iain

charleski
07-07-2011, 12:25 PM
Put the background colour attribute in th instead and it works fine in ADE:

th {
background: #C9652F;
border: 2px solid black;
text-align:left;
padding: 0.25em !important;
}

iain robinson
07-08-2011, 02:55 AM
Thanks charleski - you're absolutely right. Why didn't I think of that?!:smack:

thanks!