View Single Post
Old 09-13-2014, 01:51 AM   #22
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by Arkadian View Post
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
  <head>
    <title>Sconosciuto</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
  <body class="calibre">
	<h2 class="block_" id="toc_id_1">Headline goes here</h2>
	<ol class="list_">
	<li class="block_1">yadda yadda yadda</li>
</ol>

</body></html>
Just speculating but I think your problem arises because of the <ol>.

Possibly your renderer is trying to put <h2> and THE WHOLE <ol> in the same page. It is maybe impossible and then it just splits after <h2>...

If the start numbering of the <ol> lists can be altered (I've never used this tag) you could try something like that:

Code:
<h2 class="do_not_break_after_me">Your Title</h2>
<ol class="just_the_first_item">
  <li>First item</li>
</ol>
<ol class="continue_numbering_with_whichever_trick">
  <li>Whatever goes after it.</li>
  ...
</ol>
arspr is offline   Reply With Quote