Limit height of images in PDF template

Matthijs

Member
Hi, I use a template to format the PDF output.

The template has a table with images:

<table>
<tr><td><strong>Foto 1</strong></td><td><strong>Foto 2</strong></td></tr>
<tr class="photo-row"><td><br>dadabik_field foto_1 dadabik_field</td><td>dadabik_field foto_2 dadabik_field</td></tr>
</table>

My question: can I limit the height of the images?

I tried to add css:
.photo-row img {
max-height: 100px;
width: auto;
max-width: 100%;

and apply to table row:
<tr class="photo-row">

But that does not work.
I would like a HTML/CSS solution and keep images in original format!

thanks for any help!


Your current DaDaBIK version​


You are using DaDaBIK version 11.12-Elba enterprise, installed on 10-12-2023 (installation code: 18828644e443ac0e33), the latest version of DaDaBIK is 11.12-Elba released on 30-11-2023

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.


System info​


PHP Version: 7.4.33


mysql version: 5.5.5-10.6.16-MariaDB


Web server: Apache/2


Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
 
Top