I do not care for a specific technology, it could be JS, CSS or even some unstandard and evil html attributes. I just want the input
to get bigger if user types over the right border.
I do not care for a specific technology, it could be JS, CSS or even some unstandard and evil html attributes. I just want the input
to get bigger if user types over the right border.
Let the browser do the calculating of the width by using a div
with contenteditable
set to true
.
<div class="pseudo-input" contenteditable="true">Resizes to my content!</div>
There should be no issues with browser support http://caniuse.com/#feat=contenteditable