Text box does not expand pushing elements to it's right

I have two text boxes text1 and text2 placed next to each other horizontally.

If the contents of text1 is longer than the size of the textbox, the text wraps around to the next line.

How can I configure text1 to be expandable, so that the text does not wrap around, but pushes text2 to the right to accommodate the longer text.

Please note I am setting the text box contents using code.

The goal is to have the same space between text1 and text2 regardless of the content in text1.

Any suggestion would be of tremendous help!

Looking for this solution at the moment and looking at html or CSS solutions via text api. Not sure to what extent wix classic supports them

Access to CSS features depends on the plan you have