1b.app
Link copied -

image size in html

Document Template https://farfor.crm-onebox.com/admin/shop/document/templates/17/control/
In it, I added the output of the image through a variable
{row:product_image}
But the image is very large
You need to set its dimensions, for example 65x65 pixels.
If it was a direct link to the picture, I would ask like this
<div class="" style="float: left; margin-top: 10px; margin-left: 10px;"><span style="font-size: 8px;"><img src="https://farfor .crm-onebox.com/media/document/images/bc3db56cb94e22dcfc01ebb4ddd8d2f8.jpg" width="100" height="100" /></span></div>
But if this is a variable, it is not clear how to set the image size, please help with this example.
Original question is available on version: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:

You can try to prescribe styles for the table in the <style></style> tag in the document template
For example, <style>.table-selector img{max-width: 65px;}</style>
25.03.2021, 18:01
Original comment available on version: ru


Derkach Dmytriy wrote:
You can try to prescribe styles for the table in the <style></style> tag in the document template
For example, <style>.table-selector img{max-width: 65px;}</style>

Something doesn't work, maybe I'm writing somewhere in the wrong place
Here's how I did
Can you tell me where exactly to write this on this template? https://farfor.crm-onebox.com/admin/shop/document/templates/17/control/
26.03.2021, 14:33
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Korop Vladislav Pavlovich
KTS Premium Partner wrote:

The text that you wrote above is inserted into the <head></head> block (you can make the document template a full-fledged html document, with doctype, etc., and insert all the text that you have been given into the head). But it's unreliable. Maybe you remember how we talked for a long, long time when the box stopped using styles from the <head></head> block when uploading a document to pdf :-)
In documents, in my experience, it's better to use inline styles.
Here is an example of how we did it:
<img src="https://knz.market/{row:product_productimageshort}" height="150px" />
26.03.2021, 15:26
Original comment available on version: ru

In your case, instead of height="150px" from my example, you can write style="max-width: 65px;"
<img src="YourBoxAddress/{row:product_productimageshort}" style="max-width: 65px;" />
26.03.2021, 15:42
Original comment available on version: ru


Chernik Lyudmila
Client wrote:
In your case, instead of height="150px" from my example, you can write style="max-width: 65px;"
<img src="YourBoxAddress/{row:product_productimageshort}" style="max-width: 65px;" />

I support. This option will work 100%
26.03.2021, 16:03
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