Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2011, 11:51 AM   #1
iain robinson
Connoisseur
iain robinson began at the beginning.
 
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&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;
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;
}
Would appreciate it if any of you guys had any thoughts about this (except "don't use/worry about ADE").

cheers,
Iain
Attached Thumbnails
Click image for larger version

Name:	table-problem.png
Views:	73
Size:	132.7 KB
ID:	73938  
iain robinson is offline   Reply With Quote
Old 07-07-2011, 12:25 PM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
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;
}
charleski is offline   Reply With Quote
 
Enthusiast
Old 07-08-2011, 02:55 AM   #3
iain robinson
Connoisseur
iain robinson began at the beginning.
 
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!
iain robinson is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:38 AM.


MobileRead.com is a privately owned, operated and funded community.