1b.app
Link copied -

Layout of documents, how to do it right?

We print template for assembly
https://smallpet.crm-onebox.com/app/document/templates/15/control/
In the template we use - product_image
This is how it gets printed

The value itself is in the cell, the cell contains the height and width parameter
But the picture pops up
Tried adding an image to a div and setting conditions for it

The best option turned out like this

When it just cuts off the excess, but how to make the picture scale inside the table block / cell?
That is, set the maximum width and height and so that the image is not displayed more than these values, but is scaled relative to the given dimensions
Original question is available on version: ru

Answers:

Hello. Try inserting into the template
<style>
img {
max-width: 100%
max-width: 100%
}
</style>
or set img to a fixed size
08.02.2022, 17:56
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment