07-07-2011, 11:51 AM | #1 |
Connoisseur
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
issue with table headers in ADE
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; 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 </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 Code:
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; } cheers, Iain |
07-07-2011, 12:25 PM | #2 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Put the background colour attribute in th instead and it works fine in ADE:
Code:
th { background: #C9652F; border: 2px solid black; text-align:left; padding: 0.25em !important; } |
Advert | |
|
07-08-2011, 02:55 AM | #3 |
Connoisseur
Posts: 75
Karma: 10
Join Date: Apr 2011
Location: UK
Device: none
|
Thanks charleski - you're absolutely right. Why didn't I think of that?!
thanks! |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks issue - Missing a list table of contents? | adam_omega | Apple Devices | 6 | 04-08-2011 12:41 AM |
Table of contents issue - xhtml to epub | Ryan_scriptorium | Calibre | 1 | 07-11-2010 10:40 AM |
PDF to ePub conversion issue - headers getting left in | deadSkip | Calibre | 7 | 07-09-2010 02:07 AM |
Forget coffee table books-- how about a kitchen table book? | ardeegee | Lounge | 10 | 12-02-2009 12:00 PM |
pdf to mobi table of content issue | magphil | Calibre | 2 | 08-27-2009 12:06 PM |