View Single Post
Old 01-23-2013, 03:35 PM   #28
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: 73,897
Karma: 128597114
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 theducks View Post
While I don't recommend it
Every Paragraph can have it's own style (marhins; Indents; Justification...)
D'oh! that is what a stylesheet is for.

My basic preference is just a few styles, with special cases added as needed (A Lean- Mean Stylesheet)

Body sets the overall style
.chapno < the chapter head: with top and bottom margins
.firstpara < usually no indent
.normalpara < indented
You have your ePub even more crowded then I'd have mine.

I would use <p>text.</p> and have the p style set to what I want including the indent.

Then for a nonindent style...

Code:
body {
widows: 0;
orphans: 0;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: justify
}
p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em
}
.nonindent {
text-indent: 0
}
.spacebreak {
margin-top: 2em;
text-indent: 0
}
<p class="nonindent"> is for a paragraph to start with no indent at all. <p class="spacebreak" is for the space in a section break right before this paragraph.
JSWolf is offline   Reply With Quote