My form allows users to dynamically add categories, groups, and individual inputs.
I want to print the completed form so that it looks good on paper. The form can get quite complex, so I created a separate minimal page for printing purposes.
You can view my current progress in this jsFiddle or see the layout https://i.sstatic.net/mrJWt.png
The issues I'm facing are highlighted in red and purple below:
Purple: I want the last input-value
field in each row to extend all the way to the right to fill up the remaining space on the row.
Red: I need to prevent the input-label
and input-value
from breaking across multiple lines. If there isn't enough room on the row, they should move to the next line together.
How can these two problems be resolved? I am open to using JavaScript/jQuery solutions if needed.