View Single Post
Old 04-27-2011, 10:06 AM   #24
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Kaz,

The epubs I've bought (from Borders Australia) usually have something like this at the top of the .css file (in the Styles folder in Sigil):
Code:
@page { margin-bottom: 1em;margin-left: 1em;margin-right 1em;margin-top: 1em;}
body { margin-bottom: 1em;margin-left: 1em;margin-right 1em;margin-top: 1em;}
If you have something like that, you can try changing all those "1em" to "0" and see if that gets rid of your borders.

Calibre conversions seem to stick the @page section in the top of each .html file. I've found Sigil's find&replace is the easiest way to clean these up.


For the justification, my purchased epubs usually have "text-align: justify;" in the relevant paragraph definition in the .css. so this is done alreay. For example, the main text might have paragraphs that start with:
Code:
<p class="tx">It was a dark and stormy night...
and in the css is:
Code:
p.tx {
...
text-align: justify;
...
}
For these there's no hard-and-fast fix without looking at the css first.

In general, I get Kindle books and convert with Calibre as that's usually the cheaper option.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote