Hi again,
we are in the process of evaluating upgrading to Prince 13.1, looks awesome so far. Great work! However, we have run into a flexbox issue, which prevents us from (upgrading and) rolling out the new version.
In a flexbox container, laid out in column direction, with an image having the attribute 'height: auto' set, the following text of a paragraph will overlap with the image.
CSS:
HTML:
We are using similar elements in a 2 column layout and want the images always to scale to full width of a column and adapt the height accordingly. It appears as if the height of the image is calculated incorrectly.
I have attached both the source and output files.
Keep up the great work!
John
we are in the process of evaluating upgrading to Prince 13.1, looks awesome so far. Great work! However, we have run into a flexbox issue, which prevents us from (upgrading and) rolling out the new version.
In a flexbox container, laid out in column direction, with an image having the attribute 'height: auto' set, the following text of a paragraph will overlap with the image.
CSS:
.image-box {
display: flex;
flex-direction: column;
border: 1px solid #ccc;
page-break-inside: avoid;
}
img {
width: 100%;
height: auto;
}
HTML:
<div class="content">
<div class="image-box">
<div class="header">
<h2>Headline</h2>
</div>
<div class="image-wrapper">
<img src="1280px-Ansberg_Veitskapelle_1060027-PSD.jpg" alt="Pilgrimage church St. Veit">
</div>
<p>Catholic branch and pilgrimage church St. Veit on the Ansberg near Ebensfeld in Upper Franconia</p>
</div>
<div>
We are using similar elements in a 2 column layout and want the images always to scale to full width of a column and adapt the height accordingly. It appears as if the height of the image is calculated incorrectly.
I have attached both the source and output files.
Keep up the great work!
John
Edited by John