View Single Post
Old 10-16-2014, 03:43 PM   #11
Josieb1
Grand Sorcerer
Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.Josieb1 ought to be getting tired of karma fortunes by now.
 
Posts: 5,090
Karma: 18051062
Join Date: Nov 2009
Location: UK
Device: Kindle Scribe, Coloursoft, PW SE, Kindle 6, Kobo Libra 2, Clara BW
Quote:
Originally Posted by Anak View Post
the solution of frenshprince might work but you'll still end up with cut off characters that have a negative right side bearing (if it is the last character on a line). The same for characters with a positive left side bearing (if it is the first character on a line).

Try not to use the margin property but use the padding property instead.
This 'softens' the margins and will display all characters completely instead of cutting of some characters.

Code:
@page{margin:0;} or @page {margin-top:0.5em;margin-bottom:0.5em}
div,p{margin:0;padding:0;}
/* 'soft margins' by using the padding property */
.mypagemargins{padding-left:1em;padding-right:1em}
Wrap an extra divider around the original code
Code:
<body>
<div class="mypagemargins">
…
the original code
…
</div>
</body>
There are several other ways to archieve this by using the padding property instead of the margin property. Try to find a solution that fits your (coverted) book best.
Thank you for your sugestion but how would I use that with Calibre. I never delve into the code of a book, the Calibre settings is as far as I can go.
Josieb1 is offline   Reply With Quote