Quote:
Originally Posted by SigilBear
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.