View Single Post
Old 11-11-2008, 06:46 PM   #3
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by tompe View Post
I did not know that lit files had page breaks. Are they preserved in the exploded html code and how are they coded in the html code in that case?
hey! Your not suppose to ask me the hard questions. I'm just suppose to wine and complain.


Just kidding.

I've looked at several different LIT files they all seem to use the following style sheet syntax.


Code:
	page-break-before: always;
	page-break-after: always;
This is full HTML so I've seen this tag placed in style sheets or have used the style sheet embedded command

Code:
<div style="page-break-before:always">
or like
Code:
DIV {font-size: medium;
	page-break-before: always;}
or like
Code:
 
////////// HTML CODE //////////////////
<p class="pb">*</p>

// CSS CODE

.pb  {
 page-break-before: always;
}
I've uploaded a small LIT example created with WordRMR. And MOBI file created from LIT2MOBI.

Please ignore the highly technical content in the LIT/MOBI files the text is only for display purposes
Attached Files
File Type: zip LIT_TEST.zip (254.3 KB, 505 views)
File Type: prc Test.prc (48.0 KB, 488 views)

Last edited by =X=; 11-11-2008 at 06:55 PM.
=X= is offline   Reply With Quote