I'm struggling to create the following UI design.
[text1] [inputBox1]
[text2] [inputBox2]
[text3] [inputBox3]
The length of text1, text2, and text3 can vary. So, as the length of text increases, their width should also increase, causing the input box to move towards the right. In cases where the text is too long, it should wrap around. Someone suggested using flexbox, but I'm not sure how to get started with it. Can someone please assist me?
Here is the basic structure:
<div>
<div>text1</div>
<div>inputBox1</div>
<div>text2</div>
<div>inputBox2</div>
<div>text3</div>
<div>inputBox3</div>
.
.
.
.
</div>