View Single Post
Old 04-30-2011, 07:39 PM   #1
Hatgirl
Addict
Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.
 
Hatgirl's Avatar
 
Posts: 296
Karma: 955301
Join Date: Oct 2008
Device: Sony PRS-300, Sony PRS-T2, Kindle (7th Gen)
Tables & Font Size

I'm having problems with tables in epubs. Let's say this is the code I am using to create a table:

Code:
<table border="1">
  <tr>
    <th>Season</th>
    <th>Episode Name</th>
    <th>Description</th>
  </tr>
  <tr>
    <td>Season 1</td>
    <td>Miri</td>
    <td>The crew find a population ravaged by a strange disease, which only children appear to have survived.</td>
  </tr>
  <tr>
    <td>Season 1</td>
    <td>Shore Leave</td>
    <td>Captain Kirk orders shore leave for the <i>Enterprise</i> crew on a seemily unihabited planet in the Omicron Delta system. The landing parties begin to see strange sights, such as the White Rabbit, Don Juan, and a sword-wielding samurai. Kirk sees (and fights) an image of Finnegan, a rival from his Starfleet Academy days. Spock discovers that the planet seems to be drawing a large amount of energy from the ship's engines, placing the Enterprise in danger.</td>
  </tr>
  <tr>
    <td>Season 2</td>
    <td>Wolf in the Fold</td>
    <td>Mr. Scott is implicated in a series of bizarre murders.</td>
  </tr>
</table>
This creates a nice, normal 3x4 table that looks fine in Calibre, Ibis Reader and Firefox EPUBReader. But when I look at it on my Sony PRS-300, I run into problems. At the default, smallest text size it looks fine. The three columns are visible, and if there are too many rows to all fit on the same page, the lower columns just overspill onto the next page. All the text is readable, even if it is spread out over a couple of pages. Yay.

But here's the problem:
When I increase the font size on the PRS-300, the far edge of the right hand column disappears and so does the bottom of cells that contain more than a few words of text. This missing text doesn't spill over to the following page or anything, so it is not possible to read all of the text in my table when the font is larger than the default size.

Gah! Ideas, anyone?
Hatgirl is offline   Reply With Quote