Dynamically moving elements as text grows

I have two text boxes. One that is fetching a number from a database and another text box next to it acting as a label.

The spacing is fine when displaying double digits such as ‘10’, but how do I make the ‘Views’ text box dynamically move sideways to display a larger number, such as ‘100k’?

Screenshot 2021-01-19 at 16.53.57
Screenshot 2021-01-19 at 16.54.14

The easiest way is not to use 2 text boxes.

Just have a single text box that displays the number and the word views - i.e. ‘10 views’

That way the spacing will always be correct, no matter what the number is.

1 Like

:smiley: Anyone else find that they come up with some ingenious ways to overcome complex tasks in Bubble, then when it comes to something as simple as using the same text box it’s just impossible to resolve yourself??

Thanks Adam…

1 Like

Having said that @adamhholmes, now the next challenge…

Is it possble to style the dynamic text and make it bold, while the other text in the text box is regular?

Yes, you can either use bb code directly in the text input in the text element properties, or just use the richtext editor:

image

1 Like

My hero

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.