View Single Post
Old 03-11-2013, 09:24 AM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Agama View Post
Is there any way to specify the margins, indents etc. as a proportion of the page size rather than of the font size?
Margins as a proportion of the page size is going to be just wrong. It's bad form and should not be done. Indents as well are in poor form for to a proportion of a page size. For margins, use pt and for indents, use em. I use 1.2em and find this works well. It's not too big with being just big enough.

It's best with an ePub to set it up with no margins at all and then use an @ page like this...

Code:
@page {
margin-top: 5pt;
margin-left: 5pt;
margin-top: 5pt
}
That way, it's very easy for those of us who want to change the margins or just get rid of them to do so.

For indents...

Code:
p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em
}
JSWolf is offline   Reply With Quote