I have an input
element with some text following it. For example:
<input type="email" required/> simple text
I need to change width of input
depending on size of text. If there is much more text, then width of the input should shrink.
Is this possible with flex or CSS for older browsers? Also, the width of the input is only dependent upon the text next to it, not it's own value.