1b.app
Link copied -

How to insert a variable in a document on top of an image?

Есть вопрос по функционалу компонента Документы?
Создайте топик на нашем форуме и вам помогут! Создать топик
Colleagues, when does he know how to make a document template in such a way that it contains a static picture, and insert variables inside it or on top of it?
Now in a document when I insert an image, I cannot insert variables or other information on top of it ((
Here is an example of a template https://our-store.com.ua/admin/shop/document/templates/72/control/
Original question is available on version: ru

Answers:

Hello. Try to build something like this:
<div class="image-holder" style="position: relative">
<img src="image path" alt="">
<span style="position: absolute; left: 100px; top: 50px;">{variable 1}</span>
<span style="position: absolute; left: 100px; top: 50px;">{variable 2}</span>
<span style="position: absolute; left: 100px; top: 50px;">{variable 3}</span>
<span style="position: absolute; left: 100px; top: 50px;">{variable 4}</span>
</div>
Wrap the image in a block that has position: relative, then wrap the necessary variables in a span c position absolute, and set the coordinates left: 100px and top: 50px;
the countdown will be from the top left corner <div class="image-holder" style="position: relative"> - this way you can place variables on top of the image
20.12.2021, 16:56
Original comment available on version: ru


Derkach Dmytriy wrote:
Hello. Try to build something like this:

Thanks, it worked!
You need to play a little with px, but it works.
22.12.2021, 13:19
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