01-26-2010, 06:23 AM | #1 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
unwanted table-change (vertical align) by calibre
Hello
I just worked on a html file. It looks a little bit like this: (don't worry about the lines, I just added them so to make it more clear, instead of the lines there is an empty space in my html) First:__ text text text text ______ text text text text ______ text text text text Second: another text another text Third:__more text more text ______ more text more text ______ more text more text To make it look even I made a table out of it. Also I used <td valign="top"> on the first row of every line, so that the "First", "Second", etc. always comes in the top line. Then I converted the file with calibre to epub and now it looks like this: _______ text text text tex First:___text text text text _______ text text text text Second: another text another text _______ more text more text Third:__ more text more text _______ more text more text I was surprised, so I unziped the epub and looked at the css. And here it says: .calibre4 { display: table-row; vertical-align: middle } I changed the vertical-align to "top" and now it looks the way I want it. Is there a way to turn this off ? Or should I overwrite it with with the extra css box. I tried it, but either I am doing it wrong, or it doesn't work. I just copied the .calibre4 with the edited "top" in it. Basically it ain't that much of a problem, I can easily open the epub and edit the css, but I would like to know if there is an easier way, a way before the epub is finalized thanks |
01-26-2010, 12:19 PM | #2 |
creator of calibre
Posts: 44,509
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use
style="vertical-align:top" instead of valign |
Advert | |
|
01-27-2010, 04:35 AM | #3 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
thanks, that works
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to do Table of Contents in Calibre? | Killian | Conversion | 29 | 05-09-2011 04:05 PM |
Calibre making unwanted chapter breaks | PatNY | Calibre | 6 | 10-08-2010 10:58 PM |
Amazon and Sony on Calibre - Table of Contents | jsprung | Calibre | 2 | 01-19-2010 09:35 AM |
[Calibre]Table des matiere .mobi ? | androgyn3 | Software | 14 | 01-13-2010 10:46 AM |
Calibre is creating unwanted collections | jabberwock_11 | Calibre | 2 | 12-28-2009 01:31 PM |