View Single Post
Old 10-16-2014, 02:53 PM   #10
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
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.

Last edited by Anak; 10-16-2014 at 02:57 PM.
Anak is offline   Reply With Quote