I'm trying to erase an input element so that its text looks like plain / inline text, and I have reset almost all the css properties that may have, but I can’t get the width of the input to adjust / reduce its contents ( input { width:auto; min-width:0; }does not work). It obeys an arbitrary width, as input { width: 10px; }, therefore, obviously, its width is adjustable.
I see people trying to do this using javascript (the fiddle from the answer no longer works), so I'm wondering if I even want to.
Here's the fiddle .
jacob source
share