View Single Post
Old 04-23-2013, 04:18 PM   #1
mart1984
Junior Member
mart1984 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Pocketbook Touch
Question epub to epub for padding removal

Hello all,

I have trouble with my ebook reader when any padding information is included in the epub document. WHen "padding" is included it ignores any "margin" information. Unfortunately most of my epub's include "padding-top/bottom:0;" in .calbre and so all the margins are shown as 0. Drives me crazy

So I thought to reconvert all my epubs to epub using calibre with the style info "padding" option activated.

Ok, then it removes "padding-top/bottom:0;" in .calibre but includes it in .calibre1 which is used for standard formatting. Great .

Original:
Quote:
.calibre {
font-size: 1em;
margin-bottom: 0.5em;
margin-top: 0.5em;
padding-bottom: 0;
padidng-top: 0
}
.calibre1 {
font-size: 2em;
margin-bottom: 1em;
margin-top: 1em;
}
Converted:
Quote:
.calibre {
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
text-align: justify
}
.calibre1 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0.5em;
margin-left: 0;
margin-right: 0;
margin-top: 0.5em;
padding-bottom: 0;
padding-top: 0;
text-indent: 0.5em
}
To put it short: How do I get rid of any padding info in the stylesheet?

Thanks for any help...


Mart


PS: I tried "Other CSS options" already, even tried different output format (at least: Generic, Pocketbook 900, Sony xxx 300). I try to avoid changing all my ebooks by hand, that would be something for next winter...
mart1984 is offline   Reply With Quote