Hi,
I’m facing a challenge where I need to dynamically control the padding around text displayed over images. Here’s the setup:
- Image Table: I have a database table storing images. Each image record includes:
- Image file
- Description
- Top, bottom, left, and right padding values (to determine text placement)
- Goal: Display an image from this table with overlaid text. The text position (padding) should adapt based on the specific image selected.
The Problem:
- Bubble’s conditionals only allow fixed numeric values for padding, so I can’t reference the database values directly.
- I have about 50 images, each with unique padding requirements due to varying graphics.
What I’ve Tried:
- I considered setting individual conditionals for each image, but that’s not scalable.
Ideal Solution:
I’m looking for a way to dynamically adjust the padding of the text group when a new image is selected. The padding values would be pulled directly from the database record associated with the chosen image.
Any suggestions or creative workarounds would be greatly appreciated!