View Single Post
Old 06-15-2017, 07:30 PM   #25
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: 80,031
Karma: 147977995
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 SigilBear View Post
Margins of WHAT?

On a web page, everything is generally built on div's, so I could style a page margin like this:

div.Page { margin: 0; }

But how would I do that in an epub, like this?:

body { margin: 0; }
The last website I helped build, I did not use <div> where <p> and classes would do.

As for margins, in body, yes, use margins of 0. But do not use margin shorthand. Some older devices such as nook do not like them. Use the full margins.

Code:
body {
widows: 1;
orphans: 1;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: justify;
}
That sets widows and orphans to 1. That means the end of the page stays the same (and to me, it looks better). Sets the margins to 0 and the text is justified.
JSWolf is offline   Reply With Quote