View Single Post
Old 08-18-2012, 12:25 PM   #909
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 Anak View Post

In kepubs (where epubs don't)
  • each text line is followed by a blank line, while the blank line shouldn't be there at all. Seems a margin or padding issue (margin-bottom or padding-bottom).
    Kepub looks like

    line1
    empty line
    line 2
    empty line
    line 3


    while it should look like
    line 1
    line 2
    line 3

To me, these small imperfections are very easy to correct and contribute to a better reading experience.
I edited the kobo.css file manually to fix this problem. I was right, it is a margin/padding problem.

Code:
Original code (kobo.css)
…
p, div
{
	font-size: 14pt;
	line-height: 1.475em !important; 
	text-indent: 0 !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 1.0em !important;
	text-align:		left !important;
}
…
Code:
Edited code (kobo.css)
…
p, div
{
	font-size: 14pt;
	line-height: 1.475em !important; 
	text-indent: 0 !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	text-align:		left !important;
}
…
BTW: padding: 0 !important; also works just fine.

Kobo should use padding(-bottom): 0 !important; as default.

Last edited by Anak; 08-18-2012 at 12:28 PM.
Anak is offline   Reply With Quote