To create a dropdown menu with textboxes, I implemented the code found in this Stack Overflow answer:
Now, I am looking to reposition the dropdown menu to align with a specific piece of text, preferably to the right side of the 'Textpiece'. I attempted to modify the CSS, which can be viewed here: https://www.w3schools.com/code/tryit.asp?filename=GDUL1WPE82S0
Unfortunately, the content of the dropdown box does not move along with the box itself. Additionally, I recognize that hardcoding the position is not the most effective solution.
Does anyone have suggestions on how to achieve this repositioning?