View Single Post
Old 08-20-2014, 05:51 AM   #44
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by cybmole View Post
so the line spacer controls are useless unless ALL line height CSS is manually removed.
Just put your preffered default line height in the body tag.
For the most flexible epub: put all your preferred settings in the body tag and Remove/delete all matching child selectors.
The child selectors should only contain different values.

Code:
.indent {
font-size:1em;
line-height:1.2;
margin:0;
text-indent:0;
}
.noindent {
margin-top:1em;
text-indent:0;
font-size:1em;
}
.center {
margin:0;
text-alignment:center;
font-size:1em;
text-indent:0;
line-height:1.2;
}
Rewritten it should something like this:

Code:
body {line-height:normal;margin:0;padding:0;text-alignment:justify;widows:1;orphans:0;font-size:100%;text-indent:0;}
p {margin:0;padding:0;} */ this is the only exception */

.indent {
text-indent:1em;
}
.noindent {
margin-top:1em;
}
.center {
text-alignment:center;
}
The body tag here also contains some unnecessary selectors because they are identical to the user-agent default settings. I.e: font-size:100% = font-size:12pt.
Anak is offline   Reply With Quote