background-image with local image - Forum

Forum Navigation
You need to log in to create posts and topics.

background-image with local image

What is the best way to use background-image with a local image file?

@asmat

  1. Add an Image Object outside the working area.
  2. Add a Container Object inside the working area.
  3. Click on NewPage, select Code tab and add this code:
GetObjectAttribute "Image1" "src" [imageSrc]
SetObjectStyle "Container1" "background-image" "url('[imageSrc]')"

This will work correctly with test and compiled apps.
Regards.

asmat has reacted to this post.
asmat

Thank you so much master @luishp