I am trying to do the following in HTML:
- input inside a label element (instead of using identifiers and labels for)
- entrance should occupy 100% of the remaining width
It should not be so difficult, but I tried many approaches from other examples; the use of floats, overflow: hidden, limiting the height of surrounding elements, etc. It does not have a width of 100%, but this is not an option.
The reason I probably don't use label-for (which works) is because there will be several identical input fields on the same page. They are quite complex, so I create them manually and then clone it using jQuery N times, which would then be terribly broken when using identifiers.
Base starting point:
: https://jsfiddle.net/8uuhhcon/