INPUT Dynamic Width based on content Update "8" by the actual font size onchange="this.style.width = ((this.value.length + 1) * 8) + 'px';"