Thread: white space
View Single Post
Old 06-17-2014, 04:25 PM   #8
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,179
Karma: 144286760
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 JLius View Post
Is it a CSS problem, or are there empty paragraphs or breaks between those paragraphs in the html file?

If its in CSS, you can change it to this:

p {
margin: 0;
padding:0;
}

If it's in the html, you can use regex to remove those empty paragraphs or breaks. But I'm no good with regex :-)
Actually, for a nook, that CSS is possibly incorrect. What you want is...

Code:
p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em
}
Just remember to set the body correctly and any style with a center needs a text indent of 0. Also, there's no need to set the padding unless you want some padding.

Code:
body {
oeb-column-number: 1;
widows: 0;
orphans: 0;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: justify
}
The oeb-column is to keep ADE from going off into two columns when the ADE window is increased enough. It doesn't seem to bother any other ePub compatible reader that I know of.
JSWolf is online now   Reply With Quote