![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: None
|
Table formatting
First-time user!
I'm having trouble with the formatting of the tables. The rows are too high, leaving a lot of blank space between rows. Everything else has been nice and easy, converting my document to epub using calibre, and then tuning it in Sigil. But the tables are driving me crazy. I've read the user guides, tried a few things on my own in "code view", but I'm stuck - nothing seems to change the table formatting. At all. The tables look great prior to the conversion. They look great in HTML. But in ePub they have all that wide space between rows, almost like an extra row in between each row. Can anyone point me to some documents or threads or discussions that can help me figure out how to get the tables formatting properly? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You need to style the tables in the stylesheet. That is were all the styling is done. Since you converted it via Calibre, all styles will probably be something like Calibre[digit]. You need to find the style that belongs to the tables.
I recommend learning some HTML/CSS. That will help you a lot. Also, what is the source? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
And try to avoid tables as much as you can, they are a sure source of headaches in ePub. For every table, there's usually at least one other way of presenting the content, which will be more likely to behave as expected.
|
![]() |
![]() |
![]() |
#4 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
There are probably paragraph tags in between the <td></<td> tags. This would give you extra spaces. No formatting tags are necessary for table data unless you want them there.
You need to make sure as you zoom to the largest level that the table stays useable. That is why I often use images so the table doesn't grow overly large. You can control excessive width by controlling the text size. But nothing avails under every circumstance. Tables don't center easily without the formatting changing in undesired ways, either. |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
I'm still looking for the best way to lay out dialogue, in the style of a play script. Two columns. Character name on the left, aligned top. Block of speech to the right. Preferably a method that works on epub readers and translates well to Kindle. And now authors want to publish on Smashwords, which rejects tables completely...
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Salviati
Wouldn't something like this be enough? Simplicio But it doesn't look like printed plays! Salviati So what? |
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Absolutely! But some customers won't be educated into the practicalities of eBook layout. They've just spent hours (or weeks) agonising over the precise detail of a printed layout and can't let go of it!
|
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,905
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
you might search |
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
I can't find it. I remember one suggestion that didn't actually work. If you find it, please let me know.
|
![]() |
![]() |
![]() |
#10 | |||
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: None
|
Quote:
Yes, according to Code View, the only thing in the table tag is something like class="T-Table2". Likewise in col there is class="TC-Table3A", in TR there is class="TR-Table" and in TD there is "TD-Table1A" and finally in P (each cell is a P) there is class="P-P3". Then I go to the Styles browser, and look at stylesheet.css In there I can find all those classes. I try changing some of the values in the classes, but they don't seem to have any effect. I save, re-load, everything, but they don't seem to do anything Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#11 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2013
Device: None
|
Quote:
Yes, the cells DID have the P tag. When I removed them, the problem went away. Even easier, when I went into the stylesheet.css I saw margin-bottom: 1em; and margin-top: 1em; and when I changed them both to 0em, all my tables looked great. Thank you. |
|
![]() |
![]() |
![]() |
#12 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Glad to hear it. Make sure that when you increase the viewing size they stay ok. Not too hard if you have just a few items. I have worked on government publications with 15 items across...hard to make things stay in line then!
|
![]() |
![]() |
![]() |
#13 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Yeah. The main reason that anything beyond a very simple table doesn't work well in an eBook is that there just isn't enough screen width. If you KNOW your book will only be read on a larger-screen device, why bother with eBook format at all? eBook is about pouring text into different-sized containers. If it's ALWAYS going to be read on e.g. an iPad you might as well take full control of layout and make a PDF.
|
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
BobC * I think the css styles used by these are more descriptive than the generic "calibrexxx" ones you get with Calibre. |
|
![]() |
![]() |
![]() |
#15 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
When I was making this book with play-script formatting I had trouble getting text (the character name) to top-align in its table cell. Styling via stylesheet worked in everything except Kindle for iPad. DOES anyone read Kindle books on iPad? Is the app broken? Anyway, Kindle Previewer offeres Kindle for iPad and fussy customers check EVERYTHING. It can take less argument to just make it work. It turned out that explicit inline styling worked, the stylesheet didn't (though it did in other respects).
Before getting the job, I was asked to submit a sample page demonstrating that I could deliver the required layout. Suggesting alternatives just hits a brick wall in these cases. |
![]() |
![]() |
![]() |
Tags |
margin align, scripting |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fictionwise Formatting - [Back to Table of Contents] | JeremyR | General Discussions | 4 | 12-24-2010 10:10 AM |
RTF to Mobi to Kindle: Table Border and Formatting are lost | Starko | Calibre | 12 | 12-20-2010 05:46 AM |
Anyone know how to convert a pdf table into a table in Word or HTML? | BasilC | Workshop | 7 | 06-25-2010 01:02 AM |
Forget coffee table books-- how about a kitchen table book? | ardeegee | Lounge | 10 | 12-02-2009 12:00 PM |