Largura de entrada automaticamente
<input id="txt"
type="text"
onkeypress="this.style.width = (this.value.length + 1) + 'em';">
GutoTrosla
<input id="txt"
type="text"
onkeypress="this.style.width = (this.value.length + 1) + 'em';">
onkeypress="this.style.width = (this.value.length + 1) + 'em';"