View Single Post
Old 01-27-2017, 07:54 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by pluma View Post
Thanks for the quick response, but would you care to elaborate how to use it? I am really desparate with this as I've got everything broken.

Where should I place the 'page-break-before' inside a <p>, <span>, <div>, <table>, combination of <br \>, ...???

I'd appreciate some examples.
It is a CSS style attribute. You need to apply it to the tag of interest. I would create a style and put it on the tags of interest. So, in the stylesheet:

Code:
.page_break {page-break-before: always;}
And in the code:
Code:
<p class="page_break">This might be on a new page.</p>
But, I have no idea whether either of the book renderers on the Kobo respect this. I usually strip these out.
davidfor is offline   Reply With Quote