Niels wrote:The suggested solution was my starting point, where I first encountered the issue before trying to search for workarounds.
So try this:
In your stylesheet, do the following:
* Create a generic style ".KeepWithNext" that only has "page-break-after: avoid;"
* Create a <p> style specifically for paragraphs that contain images: "p.image {page-break-before: avoid;}"
* Apply the styles in your code, the first one to the paragraphs that introduce the images, the second to the paragraphs that contain the images. - I've edited the code you posted so you can give it a go. Bits I have added are in
red. You will see also that I removed the divs, they're not necessary and just cause code bloat.
* When you have tried that, and the code below, let us know what happens.
* And then come back and say thank you.
<body>
<h3 class="Kapitelsubsubheadline">Installing certificates<a name="_Ref435767965"></a><a name="_Toc523842474"></a><a name="_Ref345688294"></a></h3>
<p>Before running the Coordinator installer the certificates must be installed.</p>
<p>The complete certification path must be trusted i.e. if you use an official certificate from an official trusted root authority no more actions are required. If you use an own certificate, maybe additional certificate import actions have to be done (e.g. import the parent certificates of the own certificate, or for self-signed certificates import it additionally to trusted root authorities, for more details on generating self-signed certificates see chapter “Generating and Installing Self-signed Certificates Using Keytool” in <MadCap:xref href="Applicable Documents.htm#IMAInstallationManual9411" class="ParaTextOnly">[Installation Manual]</MadCap:xref>).</p>
<p>If Firefox is used, on client machines you must consider the workaround “<MadCap:xref href="Enable Firefox Access to OWA.htm#_Ref498430822" class="ParaTextOnly">Enable Firefox Access to OWA/MailApp (Certificate Trust Issue)</MadCap:xref>”.</p>
<p>To install a certificate do the following:</p>
<ol>
<li>
<p
class="KeepWithNext">Open the certificate console. Select the ImageMaster certificate from the list and click <span class="FlietextHervorhebung">Install PFX</span> from the context menu: </p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 1: ">Certificate console – install PFX</p>
</li>
<li>
<p
class="KeepWithNext">The certificate import wizard appears. Select the local machine as store location and click <span class="FlietextHervorhebung">Next</span> to proceed.</p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_1.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 2: ">Certificate import wizard – store location</p>
</li>
<li>
<p
class="KeepWithNext">Specify the file you want to import and click <span class="FlietextHervorhebung">Next</span>.</p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_2.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 3: ">Certificate import wizard – certificate file </p>
</li>
<li>
<p
class="KeepWithNext">Enter the password for the private key and optionally specify import options. Click <span class="FlietextHervorhebung">Next.</span></p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_3.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 4: ">Certificate import wizard – private key password</p>
</li>
<li>
<p>Select the option <span class="FlietextHervorhebung">Place all certificates </span> in the following store .</p>
</li>
<li>
<p>Click <span class="FlietextHervorhebung">Browse</span> and then select the personal certificate store from the list. </p>
</li>
<li>
<p
class="KeepWithNext">Click <span class="FlietextHervorhebung">Next</span>.</p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_4.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 5: ">Certificate import wizard – certificate store</p>
</li>
<li>
<p
class="KeepWithNext">Complete the certificate import by clicking <span class="FlietextHervorhebung">Finish</span>.</p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_5.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 6: ">Certificate import wizard – confirm import</p>
</li>
<li>
<p
class="KeepWithNext">On success the following message appears: </p>
<p
class="image">
<img src="../_Resources/Images/Mail-SM/Installing Certificates_6.png" class="border" />
</p>
<p class="caption-en" MadCap:autonum="Figure 7: ">Certificate import wizard – final screen</p>
</li>
</ol>[/quote]