Here is contenteditable ,The border will become wider or narrower with the input value。
How to make the 's border grow or shrink width the changing of the input value?
Here is contenteditable ,The border will become wider or narrower with the input value。
How to make the 's border grow or shrink width the changing of the input value?
try something like this :
<input
type="text"
oninput="this.style.width = this.value.length + 'ch' "
/>