My epub looks nice in both Sigil and Calibre Viewer, links work, chapter headings are between 2 images. But when I convert to mobi, then after first image will be pagebreak. I just can't understand why, as far as I see there's nothing in the code to put pagebreak there. All the pagebreaks I have are in the end of every chapter.
pagebreak in prologue:
Code:
<div class="mbppagebreak" id="calibre_pb_2"></div>
html:
Code:
<body class="calibre">
<div class="calibre1" id="filepos2561">
<p class="himg1"><img alt="" class="calibre20" src="../Images/00012.jpg" /></p>
<h2 class="head"><a class="calibre14" href="../Text/toc.html#filepos650277"><span class="calibre5">C</span><span class="calibre6">HAPTER 1</span></a></h2>
<p class="himg2"><img alt="" class="calibre20" src="../Images/00001.jpg" /></p>
</div>
and css:
Code:
h2 {
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: 0
}
.calibre {
display: block;
line-height: 1.2;
margin-bottom: 0;
margin-left: 5pt;
margin-right: 5pt;
margin-top: 0;
padding-left: 0;
padding-right: 0;
text-align: justify
}
.calibre1 {
display: block
}
.himg1 {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 2em;
text-align: center;
text-indent: 0
}
.himg2 {
display: block;
margin-bottom: 1.4em;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: 0
}
.head {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
font-style: italic;
font-weight: bold;
text-align: center;
text-indent: 0
}
.calibre20 {
height: 42px;
vertical-align: baseline;
width: 131px;
page-break after: never;
}
.calibre14 {
color: blue;
cursor: pointer;
text-decoration: underline
}
.calibre5 {
font-size: 1.25em;
line-height: 1
}
.calibre6 {
font-size: 1.125em;
line-height: 1.2
}
.mbppagebreak {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0
}

Nothing I try makes any difference - after conversion first image has its own page. When I inspected the code (viewing mobi in calibre viewer), I saw 'mobipagebreak' and lots of of other crud there.
I'm using default > default settings.
Hopefully someone can spot what's wrong.